davejohnson/phonegap-plugin-facebook-connect — Issue #53: fb.api fail to post
Author: alexkemp
Created: 2011-10-26 06:12:22+00:00
State: open

hello,

I got the plugin working so the app was able to allow users to post to their wall. I was able to post the user message as well as other parameters like description, etc.
The last time I tested this successfully was back in 10-2.
I just tested again today and only the user message will post successfully. All other parameters like "description" will not go through. I did not change any configuration on my side. I added the external host "graph.facebook.com" in phonegap.plist but still the same problem.
Did facebook change their api methods?
Any help would be greatly appreciated.
I'm using phonegap 1.0, xcode 4.0.2

Here's my code for the fb.api call:

/////
var publish = {
method: 'stream.publish',
message: 'hi',
picture : '',
link : 'http://www.google.com',
name: 'name',
caption: 'caption',
description: 'testing description',
};

FB.api('/me/feed', 'post', publish, function(response) {

if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response.id);
}
});