Endless loop in a Facebook game with Firefox - facebook

I have a game in Facebook and suddenly a new problem came out. In Chrome, Safari, Opera and Internet Explorer work fine. In Firefox the Facebook page loads good but when the game iframe starts loading, it gets a points that automatically reload the whole page. I can not understand what's happening. Anyone could know the issue?

You need to either accept third party cookies or locate the one cookie it needs to load (seems to be the developers's own website usually - look into the list of cookies currently stored on your computer in ff options) and whitelist(allow) that.
Since that answer is nowhere on the net and I just spent one hour trying to figure it out to fix the same problem I'm putting it here in the hope it'll help.

Well, it is good know problem for me, about half year ago I got the same also with Firefox. In my app real problem was that, firefox with his AJAX action, lost somewhere access token from parent window/frame...
My advice: try to stick access token to AJAX's request too.
Edit in response to comment:
Unfortunatelly, now I can't see any token in url into my app frame... but what I did then was something like that: (using jQuery):
$.get("http://mydomain/getInfo?id=12345 + '&' + (location.href.split('?'))[1])
where location.href.split('?'))[1] add session/access token to my intern AJAX request.
Anyway, if application works fine few days ago, check official facebook dev forum, there is often some cause on facebook side...

Related

Where, exactly channel url is used?

On what browsers or user agents that channel URL is actually used, and what for?
I have no intention of having my site to work on Internet Explorer <= 8 (it is an HTML5 <canvas> game, and I am serving everything else as "application/xhtml+xml").
So, if channel is only useful on that old crap, I can gladly get rid of it...
Related (possibly): Channel URL Facebook
Because the social plugin is cross domain call, it needs a way to communicate. The wrokaround is to include a hidden iframe in the page for that. But, with this workaround, that iframe is loaded every time when page loads and will double the traffic reported. This is why channel url was done. What it does, it load the fb js in that page, and from that moment on, the js is available on your domain.
It will improve your loading times (cache) and will fix the reporting issue (you will see in reports channel page reported separately). But is not necessary for any html5 capable browser.
So, if you are using only HTML5 capable browsers, you are safe to ignore that. I am not sure about ie9, I will try to test it with my app by removing channel url and let you know.
Edit: By removing the channel URL from my app, I start getting double traffic reports from IE9. I think that is a good idea to keep the file there, is is just a simple html file with a single line. Better to be safe than sorry.

get facebook page full public photostream

there's only one similar question and it's not been answered. not for me at least.
There are public pages on Facebook, suppose i want to get their photostream ? their album pictures ?
I don't see how the Graph API allows me access since i can't get an access token, if i browse from my browser, NOT LOGGED IN, i can still see this public information, so how do i use the AI to access it.
BTW, i tried scrapping with python+mechanize and it's no go as if u get the regular we photo stream u get only partial, no all of it and the rest you need to scroll or to know how to build the same request the browser is building, but suprise suprise the JS doing the request is obfuscated pretty well...
Any help ?
in short it's not possible to do what i wanted annonymously, moreover at the moment, only some of the API works in the web site by accident only, if u are not logged in FB do not want to let u see any page and anyone, considering the last article about their cooperation with the US gov. it's not surprising.
In any case i just use grease money and FF to get a full page\album and then download the whole thing and i i need scrapping i'll do it on those pages with a script.
basically if i log in i can get a full page using the scripts in script monkey.... though script monkey is easier since he has the browser to parse all the data and works inside the browser...
I gave up after 3 weeks...

Facebook Feed Dialog through WebView in Unity is Blank

I have been using a WebView dropped into Unity(Found here: https://github.com/gree/unity-webview) for implementing Facebook connection. The WebView has been working very well for authorization of the user in the OAuth dialog, but when I try to access the feed dialog for posting to a friend, I end up with a blank white screen. The same generated URL when dropped into a browser works just fine.
The feed dialog URL I generate looks like this:
http://m.facebook.com/dialog/feed?access_token={Access Token}&app_id={App ID}&from={Authroized User}&to={Selected Friend ID}&link={Post Link}&name={Post Name}&
description={Post Description}&redirect_uri={My Redirect Page.aspx}
Example of the functioning Auth dialog URL I generate looks like this:
http://m.facebook.com/dialog/oauth?client_id={App ID}&redirect_uri={My Auth Redirect.aspx}&scope=publish_stream,publish_actions&response_type=token
Wondering if anyone knows what could be causing this with this particular WebView.
Thanks in advance for any assistance.
Was tearing my hair out about this but got to the bottom of it. I had tried escaping the URL and it did not work the other day - but then I tried escaping just the values of some of the parameters being sent that had spaces this morning. This seemed to fix it. Simple mistake, but if anyone runs into this, don't forget ESCAPING IS EVERYTHING! Often you are working in something higher level(At least I am) where URLs and parameters get escaped automatically, lesson learned I guess :D

Creating a new facebook application, no signed request is being sent through. Old app works

I have just created a new facebook application to use in a page tab. When I check for the signed_request it is empty.
So I checked another app that I have done in the past. It is on the same server and the only difference in the setup is the dir name.
http://example.com/app1/ works
and
http://example.com/app2/ doesn't
So I tried swapping the tab URLs in the apps over and app1 still works with app2s URL.
This lead me to believe there must be a problem with the way I have set up the application.
So I went through all the settings and made sure they were the same. They all are, except there are 2 that are not available on the app I just setup. They are "Encrypted Access Token" and "Requests 2.0 efficient" neither of which seem to relate to the problem.
I seem to remember in the past there was an option to pass through the signed request to canvas page, but I can no longer find it.
Has signed request been deprecated? I couldn't see any mention of that in the docs.
Any help/comment appreciated. Otherwise I am going to have to go back and re-use old apps with new content in them, and I only have about 15 more before I run out.
Cheers
Alex
No, it wasn't deprecated.
There can be 2 issues that could cause this
You must have a trailing slash or a specific file on your page tab url.
http://myapp.com/app/
http://myapp.com/app/index.php
Your server for the second app is redirecting the request which causes it to lose the POST variables.
You should check if there aren't any redirects which usually occur form mod_rewrite. (.htaccess and such)
This seems to have been resolved now, I can no longer replicate it with new applications.

Facebook can't read my page

I run a site called http://www.theinspiration.com.
a few days ago my facebook share button stopped working. I can still share, but I dont get any fb meta data with, when sharing it.
When i try to linter it:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.theinspiration.com%2F2011%2F11%2Ftime-lapse-view-from-space-by-nasa%2F
I get: Critical Errors That Must Be Fixed
Error Scraping Page: Bad Response Code
If i just copy the source code, and make a plain HTML file, post it on a server and linter it, it works with all meta data. (really I just need to have the fB thumbnail image working, when sharing)
I run W3 Total Cache and CDN (amazon) and I read that this might be why, but when i disable W3 Total Cache, I still get the error.
I spend 10 hours trying to figure it out today. Can someone help me?
Thanks.
Daniel
I have has problems with this myself. The errors you receive are utterly useless, as I am sure the problem is it really a bad response code.
I am truly sorry that I do not remember my fix for this earlier, but I will try to remember.
Just make sure you have added an app_id and an administrator id to your metadata.
Facebook can suddenly change their required parameters, so they might have done just that.
Good luck!