This file contains hidden or 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
" Desabilitando compatibilidade com VI, para evitar problemas | |
set nocompatible | |
" Habilitar a deteccao do tipo de arquivo | |
filetype on | |
" Habilitar plugins baixados para o tipo de arquivo | |
filetype plugin on | |
" identar conteudo de acordo com o tipo de arquivo |
This file contains hidden or 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", |
This file contains hidden or 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
<!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> |