简体   繁体   English

无法从Facebook API获取数据

[英]Unable to fetch data from Facebook API

I created an app which take photos from Facebook. 我创建了一个从Facebook拍照的应用程序。 I have two questions 我有两个问题

  1. When I run my app from emulator and login with Facebook with my account I get the data, but when I run it on real device (my wife device and there is her Facebook account) the data is nil. 当我从模拟器运行我的应用程序并使用我的帐户登录Facebook时,我得到了数据,但是当我在真实设备上运行(我的妻子设备并且有她的Facebook帐户)时,数据为零。

  2. How can I get a full size photos? 如何获得原尺寸的照片? Here is my request 这是我的要求

     FBSDKGraphRequest(graphPath: "me/albums", parameters: ["fields":"id, name, cover_photo{picture}, photos{picture.type(large)} 

But type (large) doesn't work anymore 但是类型(大)不再起作用

There are two ways to check this. 有两种检查方法。

1. You should go to developers.facebook.com and add your wife's account to Roles section. 1.您应该转到developers.facebook.com,并将您妻子的帐户添加到“角色”部分。

2. You should check if the app is in development phase, if so then only you can use it to get data. 2.您应该检查该应用程序是否处于开发阶段,如果是,则只有您可以使用它来获取数据。 In order to get data from all accounts you need to make it public. 为了从所有帐户获取数据,您需要将其公开。

在此处输入图片说明

Select the suitable permissions and submit for review after you have completed all the details. 完成所有详细信息后,选择合适的权限并提交以供审查。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM