mercredi 13 janvier 2016

Facebook insights graph API, permanent token?

I'm making a statistics widget in PHP (using laravel 5.1). I need to pull some data from the Facebook insights graph API. I need to get some data that requires read_insights permission, so I need to pass an access_token.

My question is - how do I (serverside, no client auth possible) get an access token that works permanently?

Right now I only got it to work by grabbing my users token from Facebooks graph explorer, but obviously this token only has a short lifetime.

The insights data I need to grab, is from a Facebook page. Doesn't a page just have a secret key or something, I can pass, in order to get access?

Example if the current HTTP request:

http://ift.tt/1mXt7UW}

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire