/me. , .
https://graph.facebook.com/me/fotoferret:hug?ferret=http://www.example.com/pumpkinpie.html&access_token=MY_ACCESS_TOKEN
https://graph.facebook.com/ID/fotoferret:hug?ferret=http://www.example.com/pumpkinpie.html&access_token=MY_ACCESS_TOKEN
Graph Explorer POST GET. GET , , .
cURL
curl -F 'access_token=MY_ACCESS_TOKEN' \
-F 'ferret=http://www.example.com/pumpkinpie.html' \
https://graph.facebook.com/ID/fotoferret:hug
", App Token to Publish"
{"error":{"message":"(#15) This method must be called with an app access_token.","type":"OAuthException","code":15}}
,
curl -F 'access_token=MY_ACCESS_USER_TOKEN' \
-F 'ferret=http://www.example.com/pumpkinpie.html' \
https://graph.facebook.com/me/fotoferret:hug
MY_APP_TOKEN. ,
{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}
,
curl -F 'access_token=MY_APP_TOKEN' \
-F 'ferret=http://www.example.com/pumpkinpie.html' \
https://graph.facebook.com/me/fotoferret:hug
curl -F 'access_token=MY_APP_TOKEN' \
-F 'ferret=http://www.example.com/pumpkinpie.html' \
https://graph.facebook.com/ID/fotoferret:hug
{"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException","code":200}}
publish_actions /, "publish_actions": 1, , , "Get Access Token" ( )