简体   繁体   中英

Unable to fetch data from Facebook API

I created an app which take photos from 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.

  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.

2. You should check if the app is in development phase, if so then only you can use it to get data. 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.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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