Skip to content

Instantly share code, notes, and snippets.

View leandroudala's full-sized avatar
🎯
Focusing

Leandro Udala leandroudala

🎯
Focusing
View GitHub Profile
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",
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Publish Like</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.8&appId=1853222151575314"></script>
</head>
<body>
<style>