How can I do this? Im using Graph API v2.3
I am able to get the access token, but I don't know how to get the user's ID.
I think your post is duplicated...
Btw, just send a request to:
https://graph.facebook.com/me?access_token=...
Related
How to get Facebook events via event id?
i wanted to enter a event id to get all of the data, is there any API for this?
or please tell me how to get the events via graph api.
You need the permission: user_events
API : /EVENT_ID
You can test the same here: Graph API Explorer
is there any way to get the IM username in contact information, for example jabber or msn username? I didnt find the apropirate permission in api docs. Have any idea?
To put it simply: You can't access that information via graph API.
I want to get a picture from Facebook through the API from its picture id.
Has anyone else done this?
Access it here:
http://graph.facebook.com/PICTURE-ID/picture
Sample:
http://graph.facebook.com/10150165453258827/picture
If an access_token is needed, you need to use an application and the Graph API.
http://graph.facebook.com/10150165453258827/picture?access_token=xxx
Here's the documentation on access_token and authentication:
http://developers.facebook.com/docs/authentication/
I want to send my application request to user's friends using Graph API, is there any way to do this please help me I am new to this.
The only way for a person to request somebody to be their friend is through the Facebook web interface.You can request for the user only not his friends.
i found a site like graph.facebook.com but I cannot understand this API, so I wanted to know if there's a way to get the friends birthday (e.g. as an HTTP Request) ?
Please help,
Thanks in advance!
Just glancing over the documentation, it seems that you would need the user's authorization:
Look at the user api: http://developers.facebook.com/docs/reference/api/user
from http://developers.facebook.com/docs/api:
The Graph API as such allows you to easily access all public information about an object. For example, https://graph.facebook.com/btaylor (Bret Taylor) returns all the public information about Bret. For example a user's first name, last name and profile picture are publicly available.
To get additional information about a user, you must first get their permission. At a high level, you need to get an access token for the Facebook user. After you obtain the access token for the user, you can perform authorized requests on behalf of that user by including the access token in your Graph API requests
Here is an example done in FQL: Fetching friends' birthdays from facebook profile
FQL: http://developers.facebook.com/docs/reference/fql/