Facebook Tab not loading - php

so i created a facebook app (fbml).
canvas url = http://mydomain.com/fb/canvas/
tab url = tab.html
i authenticated my app with my profile and added the tab to my profile. but the tab keeps loading and loading. sometimes i also get redirected to my profile page after a short tab loading time
trying to access my canvas page http://apps.facebook.com/myapp/ works fine. also trying to access my tab page (which must be realtive to canvas) works with the apps url http://apps.facebook.com/app/tab.html.
does anyone know why i cannot access my tab page via the tab of my profile? the content of tab.htmlis just a little bit of "lorem ipsum", no php, no js, no body tags, nothing, just text.
looking into web-inspector, there is a file called tab.php which gets queried via ajax, but the content of this file is
for (;;);{"error":1357010,"errorSummary":"Oops","errorDescription":"Something went wrong. We're working on getting it fixed as soon as we can.","errorIsWarning":false,"silentError":0,"payload":null}
is this a facebook issue? but the problem exists the whole day now

This is a bug. We're pushing a fix today.

Try specifying an absolute URL for your tab URL under your Facebook application's settings.

Related

Adding a facebook page tab using Facebook PHP SDK v5

I have created a facebook application. Using php code to adding a tab in the Facebook page. And I want to change 'Secure Page Tab URL' for tab on the same App but I don't know how to do it!
Example:
tab A -> Secure Page Tab URL A / tab B -> Secure Page Tab URL B
Does any one have an idea about this? thanks!
You can only have one Secure Page Tab URL per App. If you want to show different content on different Pages, you have to parse the signed_request POST parameter to get the Page ID - and show different content depending on that ID.
More information: https://developers.facebook.com/docs/games/gamesonfacebook/login#parsingsr
Btw, it is not possible to add one App several times to one Page, just in case that´s what you want to achieve.

Contact form in a facebook page/tab

I need to create a contact form in a Facebook tab, that is supposed to store every entry/submission in a MySQL database. But i'm quite stuck.
Doing the HTML part, creating the form and the inputs wasn't that hard, but the main problem comes from the iFrame/HTML applications from Facebook (i used some already - popular - made apps that i found around).
I cannot include PHP into the Facebook tab, because it's only has support for html/css/js. I tried using but failed, as they are not displaying their source inside the Facebook tabs, so how am i supposed to accomplish this task?
LE: I managed to self-sign a certificate. Now the application is starting, as i provided secured URLs, but instead of loading the index.php in that directory i pointed, it gives me a 404 of the main site.
The main site is quart.ro, the url/secured urls are: http://quart.ro/beautydistrict and https://quart.ro/beautydistrict.
Should i write an .htaccess only for that folder? Or should i change the urls to point directly to the file ex: http/s://quart.ro/beautydistrict/index.php/?
LE2: On the application's page - https://apps.facebook.com/beautydistrict/ - it displays the content correctly (this content - http://quart.ro/beautydistrict). This app is a page tab. If i install the app to a facebook page, then instead of displaying the content correctly it gives the 404 of the main website (intead of http://quart.ro/beautydistrict i get http://www.quart.ro/404).
You can post your html data into external PHP file using jquery and ajax. Use this guide http://api.jquery.com/jQuery.post/

Chrome failing to load image with a src url that is a redirected url

I have a Merchant, which for example purposes is 1800Lighting.com, and I store the logo url for said merchant in my database.
The url that is handed to me is this http://www.ftjcfx.com/image-6201334-10737084
That url clicked in a browser redirects to this http://www.yceml.net/0444/10737084-2.jpg
The problem that I am having is when I put an image into the html page with the src attribute being the url that I am given ( the first image link ), Google Chrome fails to load the image. The developer console says "Failed to load resource." Firefox loads the image just fine. I am at my wits end trying to figure this one out, and have tried everything I can think of.
Any help would be greatly appreciated.
Thanks!
EDIT: This is what I am printing to the page.
<img src="http://www.ftjcfx.com/image-6201334-10737084" alt="icon"
class="shoppingCatIcon"/>
It was adblock!
The images are blocked for me at work due to reason:adware.
When I try from home with adblock turned up, it fails.
Always try without the plugins!

Link to a certain page inside a Facebook Tab application

I'm writing a PHP application that will serve as a Facebook Tab inside of a Page. In the application, the user has the option to Share a photo, be it on Facebook or as a link to put on other websites. The part with Facebook is easy, but my question is this.
How can I give someone a link to a page inside of a Facebook Tab?
For example, the direct url from which the tab loads the website is: http://my-site.com/tab
Inside of that website I have an url that looks like http://my-site.com/tab/photo.php?id=3
The url of the Facebook Tab is something like http://facebook.com/my-page/app_3932734623842
What I want is for the user to be able to paste a link on their twitter which would lead them directly to the page http://my-site.com/tab/photo.php?id=3 inside of the Facebook app.
Possible? How? :(
Thank you!

Facebook Like button in Page Tab App

I've seem to have run into an issue here.
I have a voting/gallery app on a Tab of a specific page on Facebook.
So to provide a user with a direct link to a image in a Gallery(in the Paget Tab App), i generated a URL with APP_DATA, so I can pass data(image filename)to the iframe.
So basically my links look kinda like this:
https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=showimage.php%3Ffilename%3D1336314789stevakralj%2Ejpg
Now, when I try to create a Like button for this Link, I get nothing.
Any ideas?
I have exactly the same problem... In my app, which is hosted by a page tab, the "Like" buttons for each item apper correctly and the "data-href" attribute for each "like" button has the same format as yours, but EVERY like button points to the Facebook page which hosts the app, not to the individual item... so, for every item in my gallery, the "like" information under it is exactly the same (number of likes for the page hosting the app) and if I "dislike" any item, I "dislike" the entire page.
I have tried the same format but the parameter NOT on a facebook page... then it works... I don't see a difference but:
https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=abc (DOESN'T WORK, for each item which have app_data different)
https://www.mytestweb.com/test.aspx?sk=app_xxxxxxx&app_data=abc (WORKS for each item which have app_data different)
Facebook doesn't seem to allow linking directly to a tab page so strips your app ID from the URL. There's no way to get around this except by linking to an external site that bounces back to Facebook.

Categories