I have been told that this endpoint can be used to determine the 2.0-flavored profile IDs for a Facebook user:
https://graph.facebook.com/?ids=REAL_ID&access_token=APP_ID|APP_SECRET
However, it's not clear to me how to successfully call this URL using FacebookClient.
facebookClient.Get("/?ids=REAL_ID")
and other similar attempts, give a message saying that REAL_ID is not recognized. Any help would be appreciated!
Related
Folks,
I am trying to figure out a way to get the list of the users that are using Google Drive for desktop in our Google workspace environment. Since there is no direct way of getting this information, i found an article online where one get this info by following the steps below:
List all the users of your domain
(https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/list)
Check for each user, based on client id, what is the response
received using tokens: get
(https://developers.google.com/admin-sdk/directory/reference/rest/v1/tokens/get)
I was successful in getting the list of users but need help on how to get information around the token response for each user( I have the app client ID). Can someone help?
I'm using Auth0 api for login. I have received facebook response in which user profile picture is as below:-
https://lookaside.facebook.com/platform/profilepic/?asid=1324218274262199&height=50&width=50&ext=1525319136&hash=AeSrHdLSZSZhBkyQ
But when I'm trying to refer this image as below, I'm not able to retrieve the image.
<img src="https://lookaside.facebook.com/platform/profilepic/?asid=1324218274262199&height=50&width=50&ext=1525319136&hash=AeSrHdLSZSZhBkyQ">
Any can give me any expert advice why its happening.? I'm not able to find any related docs.
You should use the image by calling the picture attribute from your user object. So for example, we can use the access_token we receive upon authentication to call the /userinfo endpoint to get the user profile (this information is returned as a JSON object) at which point we can do something like userProfile.picture. If you are still having trouble can you please share your code?
I'm having some problems using Graph API for accessing some friends' info.
I want to be able to retreive information about birthday, location and relationship of my app's user (for whom I obtain the access token) and his friends.
For doing this, in the oauth request for obtain the access token from the user I use these permissions on scope parameter: user_location, friends_location, user_birthday, friends_birthday, user_relationships, friends_relationships
Then, using the access token (ACCESSTOKEN) I obtain in this process I do requests to the Graph API.
If I call "https://graph.facebook.com/me?fields=id,name,username,location,birthday,relationship_status,significant_other&access_token=ACCESSTOKEN" it works fine and the answer contains all the info that I want.
But if I call "https://graph.facebook.com/AFRIENDOFMINE?fields=id,name,username,location,birthday,relationship_status,significant_other&access_token=ACCESSTOKEN" the answer doesn't contain info about birthday, location and relationship, it only contains id, name and username fields.
I understood that permissions "user_XXX" and "friends_XXX" could be used for doing this what I want to do, but I don't know if I am understanding something wrong. Can anyone help me? Thanks in advance!
I've tried do develop automatic code that would fetch data from ads campaigns under account. My plan is to have server that would query every day to get data from impressions/clicks/costs of ads and save it for later use.
I use https://developers.facebook.com/tools/explorer to get access_token for getting data (insights) from those campaign pages but when I log out to try offline_access it tells access_token is old, cause of password change or access_token getting outdated.
Isn't the whole point of offline_access to grant acccess when user is not logged in?
And besides that.. what's with most of my calls ending having reply as follows:
"(#294) Managing advertisements requires the extended permission ads_management, and a participating API key"
I've given access_token that has ads_management, but I have no idea what this Participating Api key even means. Do I need to add this to url call or something? Where do I get this Api Key?
Edit: I want to be able to get data from add campaign pages, so I'm not talking about Apps in page
You will want to read up on the deprecation of the offline_access here: https://developers.facebook.com/docs/offline-access-deprecation/
But most importantly follow the guide here on how to handle invalid access tokens:
https://developers.facebook.com/blog/post/500/
You app is to monitor the error messages coming back from the API and handle it gracefully.
I have the same issue and I found this bug can be reason of our problem. It's already accepted and assigned, but still not solved. I hope it's really bug and not a secure hole, that was closed :)
How to post a message on the wall of facebook or add comment to the thread using a graph api.I want a url of that.
like for adding a message to wall
https://graph.facebook.com/profile_id/feed?access_token=generated token&message=hi
But it not working ,it not get added to my wall.
You need to add &method=post to your request URL. Also, you must have the `publish_stream extended permission for your application.
https://graph.facebook.com/user_id/feed?method=post&message=hi&access_token=generatedtoken.. will work
instead of profile id give the user id
Hope this will work