Is there a way to get your Facebook profile information?
The User Profile API does not currently support retrieving profile information for Messenger accounts that were created with a phone number instead of a Facebook account. In this case, the API will return error code 2018218 with the message “No profile available for this user”.
Table of Contents
What happens if you are not allowed to view a profile on Facebook?
If you have permission to view the person’s profile, the User Profile API will return a JSON string with the requested fields from the person’s profile. If you don’t have permission to view the person’s profile, an empty object is returned. This profile field has been deprecated.
What does the user profile API do in messenger?
User Profile API. The User Profile API allows you to use a Page Scoping ID (PSID) to retrieve user profile information that can be used to personalize the experience of people who interact with your Messenger.
Why is there no profile on Facebook Messenger?
There is no profile available for this user. If the user signed up for Messenger with a phone number, no profile information is available. Insufficient permission to access the user profile. The application requesting the user profile does not have the necessary permissions to access one or more of the requested fields.
Do you need a token to get a Facebook profile picture?
Since Facebook has updated their docs, this method no longer works without a token. You need to add some kind of access_token. You can find more information and how to do it correctly in the fb docs for the User Image Graph API.
How to get Google ID profile information?
Important: Do not use the Google IDs returned by getId() or the user’s profile information to communicate the currently logged in user to your backend server. Instead, send identification tokens, which can be securely validated on the server. To retrieve a user’s profile information, use the getBasicProfile() method. For example:
What happens if I can’t access my profile on Facebook?
If the application can access the person’s profile, the User Profile API will return a JSON string with the requested fields from the person’s profile. If the application cannot access the person’s profile, an empty object is returned. This profile field has been deprecated.
What does error code 2018218 mean on Facebook?
In this case, the API will return the error code 2018218 along with the message “No profile available for this user”. Apps that have received App Review approval for the required feature and permission can retrieve the following fields for users who have made this information public and subscribed to their page.
When not to return data from Facebook Graph API?
Does not return data after April 4, 2018, if the current user is a guest user. should always return false. A link to the person’s timeline. The link will only resolve if the person clicking the link is logged into Facebook and is a friend of the person whose profile is being viewed.
When do you need a Facebook App ID?
Application IDs used by users that are uploaded. This field is required when the scheme is a Facebook UID and the IDs were collected by an app integration. for instance, [1234,5678] Page IDs used by users being loaded. This field is required when the scheme is a Facebook UID and the IDs were collected through a page webhook integration. for instance [1234,5678]