Ressources dev:Facebook

(Différences entre les versions)
Aller à : Navigation, rechercher
(Créer un Test User (maximum 500 test users par application))
(Créer un Test User (maximum 500 test users par application))
Ligne 8 : Ligne 8 :
 
D'abord obtenir l'app access token :
 
D'abord obtenir l'app access token :
  
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials
+
<syntaxhighlight lang="php">
 +
https://graph.facebook.com/oauth/access_token?
 +
    client_id=YOUR_APP_ID&
 +
    client_secret=YOUR_APP_SECRET&
 +
    grant_type=client_credentials
 +
</syntaxhighlight>
  
 
[http://developers.facebook.com/docs/authentication/applications/ http://developers.facebook.com/docs/authentication/applications/]
 
[http://developers.facebook.com/docs/authentication/applications/ http://developers.facebook.com/docs/authentication/applications/]
Ligne 14 : Ligne 19 :
 
Ensuite créer le test user :
 
Ensuite créer le test user :
  
https://graph.facebook.com/APP_ID/accounts/test-users?installed=true&name=FULL_NAME&locale=en_US&permissions=read_stream&method=post&access_token=APP_ACCESS_TOKEN
+
<syntaxhighlight lang="php">
 +
https://graph.facebook.com/APP_ID/accounts/test-users?
 +
    installed=true&
 +
    name=FULL_NAME&
 +
    locale=en_US&
 +
    permissions=read_stream&
 +
    method=post&
 +
    access_token=APP_ACCESS_TOKEN
 +
</syntaxhighlight>
  
 
[http://developers.facebook.com/docs/test_users/ http://developers.facebook.com/docs/test_users/]
 
[http://developers.facebook.com/docs/test_users/ http://developers.facebook.com/docs/test_users/]

Version du 28 mai 2012 à 11:15

Ajouter une application dans une page fan

https://www.facebook.com/dialog/pagetab?app_id=APP_ID&display=popup&next=URL_HTTPS_DU_CANEVAS

Créer un Test User (maximum 500 test users par application)

D'abord obtenir l'app access token :

https://graph.facebook.com/oauth/access_token?
     client_id=YOUR_APP_ID&
     client_secret=YOUR_APP_SECRET&
     grant_type=client_credentials

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

Ensuite créer le test user :

https://graph.facebook.com/APP_ID/accounts/test-users?
     installed=true&
     name=FULL_NAME&
     locale=en_US&
     permissions=read_stream&
     method=post&
     access_token=APP_ACCESS_TOKEN

http://developers.facebook.com/docs/test_users/

Outils personnels
Espaces de noms
Variantes
Actions
Navigation
Boîte à outils