关于FB -object,JavaScript SDK,OAauth 2.0和Graph API的线程? [英] Threads about FB -object, JavaScript SDK, OAauth 2.0 and Graph API?

查看:113
本文介绍了关于FB -object,JavaScript SDK,OAauth 2.0和Graph API的线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解FB API。我觉得问题是因为我不了解原型的OAouth草稿页面(,第19页)。首先是这样,但现在我明白,OAouth 1.0和OAuth 2.0是完全不同的协议,虽然相同的目标,显然是..

I cannot understand the FB API. I feel the problem is because I cannot understand the protocals OAouth draft page (source, page 19). Well firstly it was so but now I understand that OAouth 1.0 and OAuth 2.0 are totally different protocols although for the same goal, apparently..

也许最重要的东西是FB关于认证的文档 here 和博客文章
here 。我正在尝试将这些线程分类到FB API中。

Perhaps the most essential stuff are FB docs about authentication here and a blog post here. I am trying to categorize here threads to dig deeper into the FB API.

推荐答案


我找不到Graph API中的图片或朋友之类的东西 - 对象

I cannot find things such as picture or friends in the Graph API -object

这是因为你没有要求他们...

That’s because you didn’t ask for them …

要获取用户的朋友,您必须查询/ userid / friends连接。

To get a user’s friends, you have to query the /userid/friends connection.

为了用户的图片,您可以只需使用地址 https://graph.facebook.com/userid/picture 作为图像src - 这将重定向到实际的图片。

And for the user’s picture, you can just use the address https://graph.facebook.com/userid/picture as the image src – this will redirect to the actual picture.

这里全部介绍: https://developers.facebook.com/docs/reference/api/user/ 连接

这篇关于关于FB -object,JavaScript SDK,OAauth 2.0和Graph API的线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆