Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting facebook page with app_scoped_user_id is not possible anymore?

Below url gaves the user's facebook page till yesterday. But it's not working anymore.

https://www.facebook.com/app_scoped_user_id/xxxxxxxxxxxxx/

Is there any way to get user's facebook page or it's disabled for a security reason?

like image 460
eerrzz Avatar asked Apr 21 '18 16:04

eerrzz


People also ask

How do I get a scoped user ID for a page?

(To get a scoped User ID for a Page, your app must query the endpoint using that Page's access token.) Your appsecret_proof hash. Refer to our Securing Requests document for more information.

Is it possible to get app_scoped_ID instead of original user ID?

And if the user is new to authorized your app now, then you always get app_scoped_id instead. graph.facebook.com {postId}/comments may return app-scoped user ID OR original user ID depends on this user is old user or not. Yes, I know about the backward compatibility. The actual problem is the Real Time Update.

Is there an API for Facebook Messenger?

This API is only available to apps: Prior to May 1, 2018, Pages API endpoints returned an App Scoped ID (ASID) for a user and Messenger API endpoints returned a Page Scoped ID (PSID) for a user. The different user IDs meant there was no way to connect conversations across the two platforms.

What is the page-scoped ID API?

The Page-Scoped ID API allows you to get Page-scoped User IDs from App-scoped User IDs. This API is only available to apps: Prior to May 1, 2018, Pages API endpoints returned an App Scoped ID (ASID) for a user and Messenger API endpoints returned a Page Scoped ID (PSID) for a user.


4 Answers

There's a new permission in Graph API 3.0 that provides a URL link for a facebook profile:

user_link

In order to use that, you have to submit your facebook app for review (and likely have a legitimate reason you need this information.

Update: I went through this process, our app got approved for user_link permission, and it works as advertised.

The user_link variable is an app scoped link that will work as long as the app remains approved, and will stop working if the app should get removed or they revoke the approval. So it's a special URL that really only works as long as the FB app is around.

like image 51
n13 Avatar answered Oct 03 '22 12:10

n13


Unfortunately, Facebook have chosen to disable the ability to resolve app scoped user IDs, so this feature is now gone. Seems they havent yet responded to people registrered to the bug to let them know.

https://developers.facebook.com/blog/post/2018/04/19/facebook-login-changes-address-abuse/

like image 29
chrisc Avatar answered Oct 03 '22 11:10

chrisc


This is no longer possible and will not be, according to https://developers.facebook.com/blog/post/2018/05/01/facebook-login-updates-further-protect-privacy/

Your best bet going forward is to open the Facebook site and search for the user name like so:

JavaScript:

Assume user is an object with a property called name that contains the user's name.

window.open("https://www.facebook.com/search/str/".concat(encodeURIComponent(user.name)).concat("/keywords_users"));

In most cases this will allow you to quickly find the person in question, given that you can still display their profile picture using the app-scoped ID on whichever site lists users. It's not great, but it may be of help to someone. We've resorted to this solution in our CRM.

like image 26
nickdnk Avatar answered Oct 03 '22 11:10

nickdnk


https://developers.facebook.com/bugs/2054375031451090/

Subscribe to that bug to get updated on the status.

There is also a blog entry about this: https://developers.facebook.com/blog/post/2018/04/19/facebook-login-changes-address-abuse/ - so this is actually not even a bug.

like image 36
andyrandy Avatar answered Oct 03 '22 12:10

andyrandy