Using the facebook graph api is it possible to get response or code that let you know the user has changed the password.
https://graph.facebook.com/{user id}
What are the params to pass on the above to get this info
facebook Doc
Related
My app has access to a users facebook profile url through fullcontacts api.
Can I use their username to fetch basic profile information using the facebook api without oAuth?
No, you canĀ“t use the username anymore. If you try to get data of a user with the username, you will get the following error message:
Cannot query users by their username
Im developing an android app that uses facebook login, and i would like to get the logged in facebook user's email, but somehow i cant.
So i started to play with facebook's graph api explorer and i can clearly see that the email field is not even in the returning data.
My profile:
Graph API explorer:
You must authorize a user with the "email" permission in order to get the email in the result of /me.
Using a system user access token I can make an unpublished post to the feed just fine and I can receive a page access token for that page. However, when I attempt to read the feed using the page access token (from a system user) I receive an empty data result, that is I don't see any posts at all or even my newly created unpublished post.
Per the Graph API 2.1 documentation for read page feeds I should be able to use a page access token to retrieve all posts on the page.
Here are my steps:
GET request to /v2.1/me/accounts using system user access token, result includes access token
POST request with page accesss token to /{page-id}/feed with fields published "false" & message "test", result is post ID (I can verify this post using object id on the graph api)
GET request with page access token to /{page-id}/feed and result is {"data":[]}
If I GET request to /{page-id}/feed with my user access token I'm shown all published posts fine.
What's wrong with my steps or assumptions?
Is it possible to get the ID (Facebook Graph API) of a user who is currently logged in, without any access tokens?
If not, then how do I get new access tokens every time a user visits my page?
You will need to init the Facebook Javascript SDK and the user will have to have authorized your app at least one time. After that when the user visits your page as long as they are logged into Facebook you'll have access to the id and can retrieve it using
FB.getLoginStatus
the response will contain the information you're looking for.
Check this blog post for more details on setting up the FB init and the initial login.
https://developers.facebook.com/blog/post/525/
You can check the facebook ID using their username
http://graph.facebook.com/radrivan
You can use the javascript sdk to get their accesstoken and let them allow your app.
https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2
I am trying to figure out if it would be possible to authenticate a specific user, with said users username and password using the graph api, and the posting a message to their wall.
Is this a possibility with the graph api?
Thanx in advance!
You can present users with a webpage (provided by facebook) for entering their credentials. Facebook will then give you back a 'token' which you can pass into the Graph API to do things on that user's behalf. Read more about this at http://developers.facebook.com/docs/authentication/