Problem running DemoApp in facebook-ios-sdk - iphone

I downloaded the Facebook IOS SDK from http://github.com/facebook/facebook-ios-sdk, and tried to run the sample/DemoApp. All functions seemed to run fine, except that I couldn't publish a stream. The FB dialog (FB box with blue border) just showed that my FB app has a problem.
In the XCode proj, I only filled-in my FB app-id to the DemoAppViewController.m, and DemoApp-Info.plist.
By printing out the URL that the FB dialog actually accessing, I found that the last URL contains the following as the query string (sorry that I didn't have the Mac right now, so everything is from my memory):
error=Invalid+user+id
Has anyone run the demo and succeeded in publishing a stream?
Am I missing anything?
Thanks.

Seems that there was a problem with FB server. I tried again today and the feed could be published successfully.

Related

Facebook js share bug in facebook APP

I created a Facebook js share at www.laobi.info and I can get the result when I shared it successfully in PC and mobile. But I can't get the result when I open the www.laobi.info and shared it in Facebook APP. I tried Android and iPhone, they returned the different results after I shared it successfully. I don't know why. Maybe it's a bug.
First, I login in Facebook App,
Second, I search the link: www.laobi.info and open it.
Third, I click the 'share', but I can't get the result though I successfully shared. However, I can get the result when I share it successfully in PC and mobile’s browser.
Can anyone help me?

Failed to get composer template data

Few of our websites like womens-health.com.my, mens-health.com.my, and elle.my having problem post any article to Facebook. When I test any URLs of these websites in Facebook Debugger, it gave me warning messages said that Failed to get composer template data. and Critical Errors That Must Be Fixed. I have no idea what causing this as other of our websites are working fine.
It's an actual Facebook bug, which is being fixed right now: https://developers.facebook.com/bugs/918385908182634/
In summary, you can fix this by making sure that article:author only contains Facebook user IDs or Facebook profile URLs.

Facebook SDK - Open Graph - Share Dialog post button greyed out - error code 102

I'm following the tutorial for Publishing using the Share Dialog on the Custom Stories in iOS section.
https://developers.facebook.com/docs/ios/open-graph
When I want it too, it switches to the Facebook App, the Graph Object is presented to the user (image, title etc) for a few seconds and then disappears and Post button greys out. If I tap the Post button before it greys out, I get an error message logged:
Error publishing story: Error Domain=com.facebook.Facebook.platform Code=102
"The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)"
UserInfo=0x16d48640 {error_code=102, app_id=1435110413425124,
error_message=An error occurred during publishing.}
FYI, the standard share dialogue presentShareDialogWithLink:handler: is working fine and letting me post - it's just when I present one with a Graph Object attached to it.
I would post sample code, but it'm using the same code that's in the tutorial above. Besides, I'm pretty sure this is to do with settings in the App Dashboard, not the code I'm writing.
Per this question on Stack Overflow Facebook SDK - iOS - Fail to share URL (Error 102), I've confirmed that:
My App's Settings are set correctly in App Dashboard (including iPhone Store ID and Bundle ID)
By info.plist file is configured correctly.
This question facebook error code 102 with sdk 3.6 suggested using a real Facebook user who was an administrator of the app. I tried that, but the problem still occurred for me.
I also tried it with the App published, and with it unpublished and there was no difference.
I'm wondering if anyone else has any ideas for things I haven't checked yet?
I'm a numpty.
Despite the fact I said I'd checked the settings were correct in App Dashboard, I had misspelt the Namepsace.
If your Facebook app status is "development and unavailable to the public" will caused same result.
You may want to change it to public under "App Review" on the Facebook app menu. Or you need to login Facebook as role "Administrators", "Developers" or "Testers"

Unity Facebook SDK Login Always Returns User 0 Access Token abc...z

I am testing Unity 4.3 with Unity Facebook SDK 4.3.4 and have everything running but it seems to always return a Test User and not my actual Facebook Login.
Using the Facebook InteractiveConsole Scene, after Logging in I see:
Facebook Dll: Loaded Successfully
UserId: 0
IsLoggedIn: True
AccessToken: abcdefghijklmnopqrstuvwxyz
Running FriendSmash...Same thing just returns the UserID: 0 and No Name
How do I tell the SDK to actually log ME in and not just a test user?
I can't seem to find anything, I tried setting the App to Not in Sandbox mode
I think I am probably missing something obvious.
Any help?
You can't actually log in and get real data in the editor yet. We just return some placeholder data, this is what you are seeing. This is a feature we are currently working on. But for now you will need to run on the iOS simulator, an iOS device, an Android device, or put your game onto Facebook canvas to get a working login.
I was trying to run the game from the Editor and the Editor does not actually log you in.
It just defaults to USERID:0 and Access Token: abcdefghijklmnopqrstuvwxyz
I compiled the InteractiveConsole Scene to the android device and it gave me the proper login.
Check my friendslist and all was good.
Still haven't checked out why FriendSmash doesn't read my name but that's another issue.
Thanks Brian!
Alternatively, you can create a script that contains an access token variable that you set by hand. Get the access token from the Facebook Graph API explorer, put it into this variable and pass it into your FB calls. This allows you to log into Facebook when running in the Unity editor.

Can't edit credits callback url in Facebook Application

I try to edit credits callback url in Facebook Application Edit page. and got
Error
Unable to update Test App settings, please verify that all of the test apps are valid.
and no more information.
This is a known problem which seems to be introduced just yesterday, see https://www.facebook.com/help/community/question/?id=2166100
I imagine that facebook will react to it soon.
Edit: Just to give an update, there are two relating bug reports:
https://developers.facebook.com/bugs/282014131882255
https://developers.facebook.com/bugs/145135438951191
Edit2: Fixed for me now!