Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

Graph API call works on Android but not on iOS #1308

Open nidhoeggr09 opened 8 years ago

nidhoeggr09 commented 8 years ago

I am calling the graph API with the following request: "?ids=xxxxxxxxxxxx,xxxxxxxxxxxx,xxxxxxxxxxxx&fields=id,name,picture{url}" (xxxxxxxxxxxx are page ids)

On Android and the Facebook Graph Explorer tool, this request works perfectly. On iOS the error callback is called with the following error: "There was an error making the graph call."

Since the error doesn't tell me too much about the problem, i don't know what to do. What is the actual problem here?

nidhoeggr09 commented 8 years ago

The problem is connected to "{ }" in the request string. I tried to escape it with no luck. Does anybody know if it is possible to use "{ }" with the facebook-plugin?

VGT150 commented 8 years ago

What a mess!!! We were ready to deliver an application to a client and now this happened!!! P L E A S E - H E L P

nidhoeggr09 commented 8 years ago

As a temporary fix i removed the {} part of my request. The respone will be a bit bigger, but the code works anyway. I will stay with this solution unit i find a proper fix.

VGT150 commented 8 years ago

Hello @nidhoeggr09,

Many thanks for considering my request. We do not understand where we should remove the {}. Can you give us more indications?

Again, I appreciate your help.

Valerio

nidhoeggr09 commented 8 years ago

If you are having the same problem as i had you can just remove the part from { to } of your request. What does your request look like?