douyujun0152 2012-03-06 11:39
浏览 62
已采纳

在我的网站内用javascript(或php)获取facebook帖子/活动/新闻/图库

I'm tryin to develop a (almost) 100% client-side dynamic website by integrating it with twitter, facebook and flickr.

I've been able so far to get the last 4 tweets (with javascript) from my client's feed, and now i was wandering if i could do the same with facebook's gallery and events from their feed.

Especially, what i need (given the facebook username/api key/whatever)

gallery

for each gallery in user's profile:

  • get the gallery name
  • get the first picture
  • get the gallery url

news/events

for each news/event/post in user's profile:

  • get the event name
  • get the event text
  • get the event picture (if provided)
  • get the event url

I don't want to use the facebook widgets with their rendering, i just need to read the json response (if there's any) and put the data inside my website (like a preview).

Since my client is pretty rusty with "computers (cit.)" but he's (not so strangely) comfortable with facebook/twitter/flickr, i tought about a solution like this before adding a database and an admin interface to our website.

I found some resources online, so i think it's possible (in a way or another). I'd like to do it in javascript, but if it's php i won't complain.

  • 写回答

2条回答 默认 最新

查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 想用@vueuse 把项目动态改成深色主题,localStorge里面的vueuse-color-scheme一开始就给我改成了dark,不知道什么原因(相关搜索:背景颜色)
  • ¥20 OPENVPN连接问题
  • ¥15 flask实现搜索框访问数据库
  • ¥15 mrk3399刷完安卓11后投屏调试只能显示一个设备
  • ¥20 白日门传奇少一个启动区服和启动服务器的快捷键,东西都是全的 , 他们说套一个出来就行了 但我就是弄不好,谁看看,
  • ¥100 如何用js写一个游戏云存档
  • ¥15 ansys fluent计算闪退
  • ¥15 有关wireshark抓包的问题
  • ¥15 需要写计算过程,不要写代码,求解答,数据都在图上
  • ¥15 向数据表用newid方式插入GUID问题