开发者

ShareKit Not showing text on Facebook

开发者 https://www.devze.com 2023-03-31 17:33 出处:网络
I am having some problems with ShareKit on Facebook.I have no issues logging in on facebook, but when I try to post the text, the facebook dialog pops up, and there is no text at all in the dialog.

I am having some problems with ShareKit on Facebook. I have no issues logging in on facebook, but when I try to post the text, the facebook dialog pops up, and there is no text at all in the dialog.

Here is the sharek开发者_运维百科it code in my project.

    // call shareKit to share the item.
    SHKItem *item =[SHKItem text: shareString];

    // Share it via facebook
    [SHKFacebook shareItem:item];

I checked to make sure my shareString is not blank. No problems, the string is exactly what I expect.

Following the code all the way through ShareKit, I get to the FBConnect code in SHKFacebook.m file.

_fbDialog = [[FBDialog alloc] initWithURL:dialogURL params:params delegate:delegate];

then :
[_fbDialog show];

And even here, everything looks fine. I have the access_token for facebook, I have the message (my share string).

{
"access_token" = "some long string";
actions = "Link to my app";
"app_id" = "my app id";
display = touch;
message = "Same as the share string";
"redirect_uri" = "fbconnect://success";
sdk = 2;
}

When I see the post screen however, it is blank. Anyone see this before? Is it a problem with the FBConnect or the ShareKit?

Really confused.


Facebook Connect no longer allows you to pre-populate the message field. This went into effect July 12th.

http://developers.facebook.com/docs/reference/dialogs/feed/

0

精彩评论

暂无评论...
验证码 换一张
取 消