I was testing for a bug found by a tester when I ran across this. I think it's a FBConnect bug but I thought I would try here to see if anyone else has had this issue:
I've FBConnected from the iPhone app to FB, logged in correctly and verified that I can resume the session. Then, I go to FB and change my password. The next time I try to post a link to FB from the iPhone app. the FBStreamingDialog shows up but disappears immediately. Upon debugging, the window is "cancelled" (the delegate is not getting called which is strange) and the return url from the webView inside FBDialog is "fbconnect:success"
Does anyone have any idea what's going on?
-Don
I'm not familar with the Facebook API but the "fbconnect:success" looks more like an objective-C selector instead of a URL. That suggest you may have a method call somehow confused with a string representing the URL. This sometimes happens when you send a selector as part of a notification.
Just a wild guess.
Related
I have started to experience a really strange problem with Facebook link scraping/caching which seems random in nature.
On brand new posts when I go to check: https://developers.facebook.com/tools/debug/ with my new URL I get a message saying 'Cannot scrape: URL blocked'
We have literally been sharing URL's to Facebook for YEARS with no problem whatsoever. All open graph tags are present and working fine.
What is really weird is if I just manually press the 'scrape again' button it grabs all the bits properly and says everything is fine. It's always just the first attempt.
I have also tried manually calling the scrap API instead of letting Facebook do it when someone shares the URL for the first time and still sometimes (not always) it returns empty (just 'id' and 'url' returned) indicating the URL was blocked.
What's going on here it's driving me mad? We are nowhere near our API limits if maybe that was the issue...
Why would it say blocked first go on the debug page then literally 2 seconds later you press 'scrape again' and it works fine.
Just to note sometimes when it says blocked it still shows maybe the image in the link preview but no title or description. It's like it's grabbed some tags but then given up. Very strange...
I have checked our access logs and I can see 'Facebot' accessing our site fine.
Hope someone can help, I am really hoping this is some weird Facebook bug as I can't see any change in our code base that would effect this.
Facebook does not return anything helpful when this happens even with the API. I have no way in contacting Facebook direct either. If we are somehow getting blocked I would love to know why and fix that issue. But it's impossible to debug at the moment.
Just to note I have 3 sites all running the same code base (WordPress environment). They are all experiencing this issue. All been running fine for many years.
Cheers
This was to do with rate limiting that was not visible in the Facebook APP dashboard. Helpful...
Full details here: https://developers.facebook.com/bugs/232343637174087/
Solution for your problem: You can use Facebook image button after adding link on Facebook news feed, like shown in iamge
second thing upload image on othe site and give the image path to your website and then put it on your news feed, you can get definitely positive result using this two methods.
also refer this image
thanks hope this two will work for your problem
I'm currently developing a game with Unity.
My game is almost finished, and I want to add some Facebook features.
I add the Facebook last SDK (5.2.1) to my C# project.
Then, I add some functions, following the SmashFriends example :
- FB.Init to Init the SDK
- FB.Login to log the user
- FB.Feed to post a story on the user timeline
Basically, FB.Init is called when I start the game. When the player finish his round, he got a score.
Then, two choices :
- User is already logged in, FB.Feed is called, with the score posted.
- User isn't logged in -> Display the login popup
Here's my problem :
When I test it on Unity, the login popup display correctly, so I can enter my Access Token, and the Feed popup display, I can post.
But, when I test my app on Facebook (host on http://parseapp.com, no issue here), FB.Init is correctly called, and when FB.Login is called, I don't have any callback...
Precision : I use NGUI in my project.
I already searched the web, but found no solution =/
It appears that in every scene you use a FB SDK functions, FB.Init should be called...
After a day searching where was my error, I'm disappointed to see that it's not specified in the doc or nowhere else!!
Thanks to Stackoverflow corrector, to correct some parts of my questions! I'm sorry but I'm a french student ;)
I think you can also implement the facebook functionality as a singleton with a DoNotDestroy.
This should help you not loose init on switching scenes.
Bug in facebook single sign on in ios6
Please check the above image. Whn i click on cancel it's not going back to the app instead it's stays in facebook itself. This is happening only in iOS6. In iOS5.1.1 it's working perfectly. Please help!!!
Thanks...
You should submit your bug to Facebook and provide as much detail as possible (including some sample code) https://developers.facebook.com/bugs/create
User after pressing cancel in FB app when comes back to your app manually, your handler will be called with status as FBSessionStateClosedLoginFailed. So check for this status and raise proper error message or try opening the session again.
I have an AIR app where the user could post on his/her FB wall by using the following link style:
http://www.facebook.com/sharer.php?s=100&p[url]=http://www.someurl.com&p[images][0]=http://image.jpg&p[title]=Title&p[summary]=Summary%20Text
It was working some time ago, however it seems to have stopped working now.
I URL encode the whole query string (maybe that's the problem?), and I've tested the resulting link works outside of AIR. I also have a link for Twitter, with another query string and it works with no problems. I've seen some other people having similar problems as well, but the solutions I've seen like using javascript:window.location haven't worked. Also tried to load a custom HTML through loadString() and afterwards redirect to the desired page, with no success either.
What do you suggest? Right now I'm using navigateToUrl, but would like to avoid it.
I'm not exactly sure why this is not working for you, but I'm sorry to inform you that the facebook share button has been deprecated and is no longer supported.
You can read about it in the documentation for the Facebook Share:
The Share button has been deprecated in favor of the Like button, and
will no longer be supported. Please use the Like button whenever
possible to drive maximum traffic to your apps.
And in the documentation for the Like Button:
What happened to the old Share button?
We deprecated the Share Button when we launched the Like button,
because the Like button improves clickthrough rates by allowing users
to connect with one click, and by allowing them to see which of their
friends have already connected
Since it's not supported anymore I'd accept the behavior of it to be unpredictable and maybe it's the reason why it stopped working for you.
I'm not a flash developer and don't have any solution for that, but you should stop using the deprecated method.
Edit
My point is that since you are using a deprecated functionality, even if you manage to fix the current problem, you'll face others later on, so what's the point in spending time on finding/fixing the problem?
As for using like button in AIR, a simple google search for "adobe air facebook like" has resulted in this: Creating a Facebook Like Button in Flash Professional for Adobe AIR.
Also, when posting/sharing something through facebook, their system scraps the url (unless they have a cached version) and so the image, title, description, etc can also come from the Open Graph tags in that page.
The login button shows up fine
I can login and give the app permissions
But when the page reload happens (using the javascript sdk) the session value from the facebook object is NULL.
I've wasted 4 days on trying to solve this problem...and I have the answer. I'm self posting because nobody should have to suffer through that crap for such a silly problem
Make sure that your connect url on the facebook developer page is at the root of the url you are redirecting to. For example
connect url is www.$##%.com
if you do a window.location='http://$##%.com';
You're going to be so SOL.
make sure sure sure (for the love of god) it looks like
window.location='http://www.$##%.com';
I hope I've saved someone 4 days of pain.