Facebook SDK error in source code //connect.facebook.net/en_US/sdk.js - facebook

It seems that there is a mistake in the source code of Facebook SDK.
I went to this link and I found out that the syntax is incorrect at this line:
if(document.='string'?m:k.ent())m();h=null;}functi ind',true",funn k=t{'use 'k){se;}e);
For some reason, there is "." after document and "functi" means nothing.
This doesn't make sense. Any suggestion about how to fix this?
As a work around I am using another FB's source code which is this:
//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.5

Related

MagnificPopup won´t work with Typo3

I would like to use magnific popup for a site which is still in development, but unfortunately nothing happens after the installation and adding the static content in my template.
No matter what i try no popup comes up.
If someone would like to help me i will provide access to the site.
Thanks a lot!
First thing to do:
look at your source code: does the 'link' show any sign of 'magnific popup' code?
Added classes? id?
Second: do you see any extra javascript and/or stylesheet that is added by the extension?
If you answer negative to 1 of these, the extension does not output anything. Sounds logic, but it is the first step. Is it a solution? Nope, it means your live just got a bit more worse, but hang in there !
If it does show any code from the ext: look at your console, are there any js errors occurred ? (if you don't know what console is, or (even worse) you work with IE) please read about chrome console of at least install Firefox with firebug.
My best beth would be a JS error...
Can it be possible that the ext itself does not work?
Does your php error logs tell you that the extension is behaving badly?
Do you see errors in the typoscript analyser (or whatever it's called to analyse the css_styled_content and other TS spaghetti )
If not, then no, it is not the ext.
Again, i'm betting my wive, three horses and a barrel of beer on JS erros.
Good luck mate !
ps: IF i'm wrong, i'm not sending you my wife by postal service. Loads of trouble last time. Nor the horses, same shizzle ..

google earth tour error

In the past I had successfully created several Google Earth tours complete with audio and animation. As best I can remember, I looked at one of my tours 2weeks ago? and things were working fine.
But I look at the tours now on both my local machine and my host web server and the google earth tours have disappeared. When I look in firebug at where the code should be, I see the following error:
Failed to process gadget http://code.google.com/apis/kml/embed/tourgadget.xml. Reason: Unable to retrieve spec for... code.google.com/apis/kml/embed/tourgadget.xml. HTTP error 404
I have not changed anything within my code, so am completely at a loss.
Can anyone share what might have happened or what I need to do to get my GEs going again?
My web site is www.kavelookout.com...See www.kavelookout.com/fingers.html for where a tour should be.
UPDATE:
I believe this is the GE tour gadget code I need...
http://www.gmodules.com/ig/creator?synd=open&url=http://code.google.com/apis/kml/embed/tourgadget.xml
but as you can see, clicking on the 'More info...' link takes me to... google.com/ig/directory?synd=open&url=http://…
Does anyone know why GE Gadgets is not working at this time? Or what link I should be using to embed GE Tours? Can anyone confirm that GE Tours are having a problem, or is it me?
Much Thanks,
k
You should notice that the pages you're trying to process are no longer available, so, that's the nature of the error.
Check the link, it sais that the page is not being found, that's why you're getting a 404 error.
So I figured it out.
The embed code that was generated in the past was...
script src="http:// www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/tourgadget.xml
I'm not sure why or when it changed, but I found that the GE Tour gadget at this URL...
http://www.gmodules.com/ig/creator?synd=open&url=http://dl.google.com/developers/maps/tourgadget.xml
...now generates this new embed code...notice the differences...
script src="//www.gmodules.com/ig/ifr?url=http://dl.google.com/developers/maps/tourgadget.xml
Again, I'd love to know why things changed, but am happy to know there is an answer.

Issues in using facebook api for ios sdk

I have downloaded the source project from
sourcecode.
I came across many issues over there, then I changed the source header path then changed the compiler version in the project settings, then all those were solved, now there is no errors, it runs, when I click FBLoginButton ,Facebook Login Dialog appeared but it looks empty,
I dont know why, The app key and app secret key were placed correctly.
I tried with device,if there would probm with simulator, still looks same.
what Im doing wrong, I had searched a lot, not found any solution, any ideas pls tell me
I have the same problem.
I have opened a bug here : https://developers.facebook.com/bugs/279606225487338
You can also vote for it, so that FB may take a look at it. Let's hope they solve it.
We had two apps in the app store which used this old api of facebook for login and they also g=have stopped working... So most probably Facebook has stopped support for this but I couldn't fond anything official. I guess we will have to incorporate the new Api.. :/ If I find something I will post here...

Invalid or missing URL scheme hackbook

I am trying to use facebook ios sdk but when I run the Hackbook example it gives me the error message "Invalid or missing URL scheme. You cannot run the app unti you set up a valid URL scheme in your .plist" Where do I make the changes for this?
Since one of the answers mentioned it, I will say that I have already modified the plist to have fb[my_app_id] in the URLSchemes.
This tutorial walks you through the process step by step, search for "Modify the app property list file".
I figured it out. There was another instance in the code where the ID needed to be replaced. What's odd is that it's not specifically called out as far as I can tell. I did a search for it.
you have to add like this
100% works and solved crash

Has anything changed in the past ~48 hours that would break a legacy canvas app using require_login()?

Nothing has changed on my end (at least I don't think anything has), but all of a sudden I'm unable to launch my app (and users reportedly are unable to install/launch) which uses the legacy require_login() function from an old version of the PHP SDK.
When I go to apps.facebook.com/myapp, I'm brought into a redirect loop between that URL and http://mysite.com/myAppsCanvasURL.
I've Googled and found some old posts where people report similar behavior but it doesn't seem like there was any resolution, and I still have no idea what could have caused this to happen out of the blue.
Any help would be greatly appreciated.
Thanks!
dshap
Figured out the answer to my own question.
My app requires access to both the user's uploaded photos as well as the user's photo tags.
To do this, I was requesting the (previously) necessary permissions by calling:
require_login('user_photos, user_photo_video_tags');
According to this developer blog post, the "user_photo_video_tags" permission is not supposed to be deprecated until November 22nd, however if I use it right now it breaks my app - if I simply remove it, there are no issues and the app works as expected.
The weird thing is I'm not seeing any exceptions thrown, but then again I'm not seeing any exceptions thrown even if I do something like:
require_login('user_photos, fake_permission');
So maybe this has something to do with the out-dated version of the PHP SDK that I'm using.
Hopefully that helps if someone else out there is having the same problem.