Wizcorp / phonegap-facebook-plugin

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

Query strings stripped from URL when using the API #987

Open butlimous opened 9 years ago

butlimous commented 9 years ago

I'm using the following code to post to a user's timeline using the Graph API. The URL I'm testing: https://www.google.com.eg/?gfe_rd=1

var link = 'https://www.google.com.eg/?gfe_rd=1';
facebookConnectPlugin.api('me/feed?method=post&link='+ link +'', ['publish_actions']);

The query string ('?gfe_rd=1') always gets stripped off the URL no matter what the URL. I tried to encode the URL and it's still doing the same behavior

deejbee commented 9 years ago

You probably need to URLEncode your link variable.