开发者

Facebook API & Twitter API

I开发者_Go百科 have a little area on my dashboard on my CMS where I want it to use a facebook fan page API AND twitter API to collect the last 6 total updates so it puts them together and gets the 6 most recent updates/statuses and list them is this possible to mix them like this?

Any other ideas?

I'm not seeing any tutorials on this.

Any ideas?


For the Facebook page posts, you can grab them (assuming you are an admin of the page) via:

https://graph.facebook.com/PAGEID/feed

As explained here: https://developers.facebook.com/docs/reference/api/page/#feed

This will return a JSON array of posts with a timestamp. I'm not too familiar with Twitters API, but they'll very likely return a similar JSON array. You can then use some simple sorting-fu to combine those two arrays and then sort them by the timestamps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜