facebook-rest-api

FACEBOOK GRAPH/rest api: how to LOGIN my OWN USER to update my STATUS with PHP

不问归期 提交于 2019-12-01 13:09:21
问题 I want to update the status of a FAN-PAGE by PHP with the help of the Facebook graph api. google says: doesn't work. Now I want to update my own user status by PHP. My main problem is how to login my own user to the graph api (with PHP), without using a browser and without funny PHP workarounds. 回答1: In both cases you need to get publish_stream permission http://developers.facebook.com/docs/authentication/permissions This can be done with FB.login() More information: http://developers

Create and Configure Facebook Apps via API

微笑、不失礼 提交于 2019-11-29 11:18:52
I'm looking for a solution to create and configure Facebook Apps via the Facebook APIs. It doens't matter if its Graph API / FQL or REST API but I couldn't find any way to do this. You didn't find because this is not possible. Facebook decided not to support app management and creation using the API, in order to avoid applications created or edited by bots. Only a few actions are possible using the API: Migration (like migrating to OAuth2, ...) Restriction (Geographical, age...) User ban (add/remove) Test User Creation/edition/deletion See http://developers.facebook.com/docs/reference/api

Create and Configure Facebook Apps via API

江枫思渺然 提交于 2019-11-28 05:00:09
问题 I'm looking for a solution to create and configure Facebook Apps via the Facebook APIs. It doens't matter if its Graph API / FQL or REST API but I couldn't find any way to do this. 回答1: You didn't find because this is not possible. Facebook decided not to support app management and creation using the API, in order to avoid applications created or edited by bots. Only a few actions are possible using the API: Migration (like migrating to OAuth2, ...) Restriction (Geographical, age...) User ban

Is there a way to check if Facebook access token is still valid?

纵饮孤独 提交于 2019-11-27 17:07:45
My site utilizes lifetime access tokens ( offline_access ). However, if the user changes his/her password, the access token gets reset. Is there a method to check if the current access token is valid before making calls to the Graph API? Thanks for your time. Otto Basically, FB wants you to poll for it, or to detect the case and redirect the user to get a reauth to occur. Annoying, but official: (Old, out of date link. See below) https://developers.facebook.com/blog/post/500/ Edit: Facebook changed their link structure without redirects. Not surprised. https://developers.facebook.com/blog/post

Is there a way to check if Facebook access token is still valid?

匆匆过客 提交于 2019-11-26 18:51:27
问题 My site utilizes lifetime access tokens ( offline_access ). However, if the user changes his/her password, the access token gets reset. Is there a method to check if the current access token is valid before making calls to the Graph API? Thanks for your time. 回答1: Basically, FB wants you to poll for it, or to detect the case and redirect the user to get a reauth to occur. Annoying, but official: (Old, out of date link. See below) https://developers.facebook.com/blog/post/500/ Edit: Facebook