Created
April 11, 2017 22:55
-
-
Save leandroudala/4f162300deed154aedc219b1db3e04b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Output using User Access Token | |
- http request | |
curl -X POST https://graph.facebook.com/191645481024/likes?access_token=EAAaVfugI1xIBAOepex5ZAMbBnofLxt1nkGPZCKa2WnNy2qV8n9HZA7csEFNBWoOMuTK436rXL4GZBRWkAyRwTK5q1x6L37x9y7JWx3Fc4R3lIN5SDdsFUsr3ZAuGWudjGwKBb9PHhHd8Wt49QQcGVRBg9tjfiZCR4ZD | |
- code response | |
{ | |
"error":{ | |
"message":"(#3) Publishing likes through the API is only available for page access tokens", | |
"type":"OAuthException", | |
"code":3, | |
"fbtrace_id":"ESKmActURoF" | |
} | |
} | |
--------------------------------------- | |
Output using Page Access Token | |
- http request | |
curl -X POST https://graph.facebook.com/191645481024/likes?access_token=EAAaVfugI1xIBAOepex5ZAMbBnofLxt1nkGPZCKa2WnNy2qV8n9HZA7csEFNBWoOMuTK436rXL4GZBRWkAyRwTK5q1x6L37x9y7JWx3Fc4R3lIN5SDdsFUsr3ZAuGWudjGwKBb9PHhHd8Wt49QQcGVRBg9tjfiZCR4ZD | |
- code response | |
{ | |
"error":{ | |
"message":"(#3) Application does not have the capability to make this API call.", | |
"type":"OAuthException", | |
"code":3, | |
"fbtrace_id":"AKTiBtQQsDX" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment