当用户进行身份验证时,我有user_friends权限,并且我尝试了很多从facebook获取好友列表。
这是我的决定
/* make the API call */
new Request(
session,
"/me/taggable_friends" /*"/me/friendlists"*/ /*"/"+id+"/friends"*/ /*"/me/friends"*/,
null
我遵循了这个教程,并成功地连接到了facebook。
但是我如何获取用户照片呢?以下是到目前为止的代码:
...
public void loginSuccess(Facebook facebook) {
GraphApi graphApi = new GraphApi(facebook);
User user = new User();
try{
user = graphApi.getMyAccountInfo();
//update your status if logged in
我试图在我的应用程序中配置OpenGraph以便,当一个人点击其中的“链接”时,应用程序应该将其“发布”在他的提要/时间线/活动上。(I created open graph actions for these features and successfully added meta tags in the page)。
因此,我使用fandjango和facepy来完成这项工作。
这就是我的代码看起来..。
from facepy import GraphAPI
@csrf_exempt
@facebook_authorization_required(permissions=["
我对微软的GraphAPI有点问题。
在文档中,我没有从第4点开始进一步了解。
链接:
我的问题是:
文档中的关键字是“从PFX文件中提取编码的私钥和公钥Base64”。
我尝试过很多方法,但我尝试过的每一件事都会出错。
我不知道如何上传签名证书。
上传验证证书不会出现任何问题。
GraphAPI的错误代码为:
Error: Code: Request_BadRequest
Message: The value for the property "usage" in one of your credentials is invalid. Acceptable values ar
我正在写一个脚本来帮助禁用账号。我正在尝试克服这个错误:
Disable-ADAccount : The server is unwilling to process the request
At line:1 char:88
+ ... ad Steve"' -SearchBase "" -Server 10.10.2.225:3268 | Disable-ADAccount
+ ~~~~~~~~~~~~~~~~~
+ CategoryInf
当登录成功时,我使用它从用户的facebook检索文本。
public void loginSuccess(Facebook facebook) {
GraphApi graphApi = new GraphApi(facebook);
User user = new User();
School school = new School();
Work work = new Work();
RestApi rest = new RestApi(facebook);