Facebook Canvas unable to get profile picture - facebook

First time using Facebook Unity SDK, and it was able to download user's profile picture fine in Editor. However when I tried to test it on Facebook Canvas, it wasn't able to download it.
You are trying to load data from a www stream which had the following error when downloading.
Failed downloading
https://graph.facebook.com/useridhere/picture?access_token=usertokenhere
Why did that happen?
I tried either of both commands:
FB.API ("me?fields=picture.type(small)", Facebook.HttpMethod.GET, LogCallback);
FB.API ("/me/picture", Facebook.HttpMethod.GET, LogCallback);
I am using 5.0.4 of the SDK

Looks like a bug that is being worked on: https://developers.facebook.com/x/bugs/364606280347510/

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?

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.

Facebook sharer on mobile

So I'm trying to make a share button on a webapp. I tried to use:
https://www.facebook.com/sharer.php?s=100&p[url]=http://google.com/&p[images][0]=&p[title]=Foobar&p[summary]=Hello%20world
It works fine here on my laptop. However, if I open the exact same url on my Android phone, I get redirected to:
https://m.facebook.com/sharer.php?s=100&p[url]=http://google.com/&p[images][0]=&p[title]=Foobar&p[summary]=Hello%20world
Which doesn't work. Am I missing something here? Should I use another API? I want to post a dynamic message with a link.

HOW to open photo in iphone fb app from other app using fb:// url

I'm trying to set a QR code link that showing me a photo uploaded into a new album in Facebook by a remote script.
I saw this page: AKOSMA
I then added fb://photo/id to my qrcode generator script
On Android, the URL works!
on iPhone it loads the Facebook app and loads a white page with no photos.
What URL am I supposed to use?
I tried some other URLs that I read about in the link above, but it doesn't work.
Unfortunately it doesn't seem it's possible. I tried in may ways!
At the moment I am linking to the photo in mobile Safari: #"http://www.facebook.com/photo.php?fbid=%#"

Problem running DemoApp in facebook-ios-sdk

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.