Facebook自動新發文按讚程式




用下方Graph API取得最新留言,並json decode出post的object_ID:

https://graph.facebook.com/me/home?access_token=*YOUR_ACCESS_TOKEN*

用HTTP POST的方式Request下方的Graph API(例<form method=”post”>),post變數中包含access_token:

https://graph.facebook.com/*OBJECT_ID*/likes/

完成了~

This entry was posted in 程式語言. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: