Facebook charting API and post-delete callback with new graphic SDKs (PHP)

I can’t find any documentation in the new documentation on the Facebook Graphics / Authorization APIs on how to handle callbacks after deleting from the Facebook server.

The REST API on this page describes how to handle this.

Any ideas on how to do this with the new PHP SDK? Do we need to verify the signature ourselves? What is equivalent for fb_params in the new graphical API?

Any ideas you can share are appreciated.

+4
source share
3 answers

Perhaps this may help you:

http://developers.facebook.com/docs/authentication/canvas

You need to perform a signature verification yourself. Sorry:)

0
source

In the settings of your application there is an option in which you can enter the URL that you want to send to Facebook when the user uninstalls your application. You can access it through the application for Facebook developers → “Change settings” → “Authentication”.

Facebook will send a POST request to this URL with the parameters described in the link you provided. Looking at the new php-sdk, there is no convenient feature for authenticating a POST request for you. You must also perform the signature verification described in the link provided.

+1
source

The only answer I received about old API functions with the new Facebook API is to simply use the new PHP library to call the old api. Here is an example of such a call.

 $fb->api(array( 'method' => 'events.invite', 'eid' => $event_id, 'uids' => $id_array, 'personal_message' => $message, )); 

Hope that at least provides you with some direction. That would be where I would go if the new API does not support anything. Although I was also lucky to guess some calls with the new API and get what I need if it is very similar to what is documented in the new API.

0
source

Source: https://habr.com/ru/post/1313711/


All Articles