Facebook Connect: Infinite Redirect - facebook

I am trying to connect my VBulletin Forum with Facebook:
The FB-Connect button appears correctly on my forum's front page. When I click on it, the FB-Dialog popup comes up.
Clicking on "OK" in order to connect FB with my forum results in an infinite redirect: Analyzing the network traffic confirmed that FB calls my forum which calls FB which calls my forum and so on.
I read through so many pages and tried so many combinations of different parameters without success.
So, I hope anybody out there can help me.

Related

gclid and fbclid at same time

During checking traffic source on e-commerce website i get confused.
I know that param gclid=.. means that user is tagged by GoogleAds, while fbclid works the same way but with facebook.
However, I dont understand what does it mean while they are both together in single url, like:
www.example.com?gclid=CjwKCAiAyrXiBRAjEiwATI95mafT26kwak0CFBgICH0ZlLqafSBuyyoUBVZihf22pPdG9QK8DUmiZBoCh8YQAvD_BwE&gclsrc=aw.ds&fbclid=IwAR0oihEZbw0Q43GXiv4YW9n_G9odTEcpxzLtMxjYYqgrTt5EM-BcKqrJyuU
Is it possible that google ads is displaying ads on facebook and that is why gclid and fbclid are attached to url at the same time?
I have asked the same question on support google and get reply from them.
This case happens when a link including gclid is pasted on a Facebook
page and somebody clicks on the link.
Source to answer.
Actually it's quite possible and normal.
If user searches on web via Google, clicks on Ad and is redirected to page, for example https://example.com/index?gclid=randomstring then it displays at the top of their browser.
Now user can copy this link and share it via Messenger (more common case) or facebook to someone. Then Facebook will not remove gclid and append fbclid.
As a result, you get a link with both these parameters.

Facebook Graph API call not working from outside

I created a web page to login to Facebook and then once logged in, create a session which stores the access token and also the user id. And then I redirect the user to a profile page where it pulls the information from user's facebook posts via a Graph API call and then presents the information. I'm using PHP to get the Graph API.
It's working fine on my local machine and I can see the data just as I want. But when I access the same link from outside my home network, It displays a blank page. I can still login from outside the home network so that piece of code works fine, but it is unable to pull the user_posts. There's nothing wrong with the code as far as I understand otherwise I won't be able to access the link even from my local network.
I tried many different solutions, added a whitelist of IPaddresses (but it may be that I'm not adding them in the correct place). I'm at a total loss. Has someone experienced a similar situation? If adding the specific ip addresses would help, where do I add them exactly. There are so many confusing fields in the Facebook developers settings.
Any help is much appreciated.

How do I Automatically Request Facebook APP connect on links to website from FB

I apologize in advance, I have searched for 30 and cannot find.
There used to be a way that if anyone linked to your website via FB, Facebook requested Connect / Auth for your App before actually sending the traffic out to your website.
Did they pull this feature? Or an I missing a radio button?
(Ps, I know I can request on page load; however, I would prefer to use Facebooks method unless this has been removed.)
Cbroe's answer about authenticated referrals being depreciated is correct. There is no longer a way of doing this without triggering a rerral request
onLoad, etc.

Facebook API: Authorizing App to post on a second Fan Page

Over PHP we're posting already on a wall of a fan page. Now I created another fan page and I want the same app to post on this wall as well. However, it gives me the same error all the time:
'FacebookRestClientException' with message 'The user hasn't authorized the application to perform this action'
The script perfectly posts with the same app on the old page.
I've used already all the links I could find to give permissions to the app for posting on the page's wall. I even got a "Success" but the PHP script answers still with the same error. I know that FB changes the links sometimes.
Apparently they're trying to make it harder and harder, so maybe someone knows links that work giving the right permissions!?
I've already used the links stated here:
facebook c# sdk - The user hasn't authorized the application to perform this action
Authorizing a Facebook Fan Page for Status Updates
Thank you!!!
The following link did the job:
www.facebook.com/login.php?api_key=YOURAPIID&next=http://www.facebook.com/connect/login_success.html&req_perms=read_stream,publish_stream,manage_pages,offline_access
The key was probably the permission to manage_pages because it then asks you again to give the permission for all the pages you currently have.
Good luck everyone!

Facebook Connect: with no javascript?

Is it possible to write a website that uses Facebook connect without JavaScript? I have a site set up that works great using XFBML but this (obviously) fails when I visit with JavaScript disabled.
I have a feeling that this is possible using the REST-api for Facebook but I'd still appreciate some pointers. There was a discussion about this on the Facebook forum.
I'm want to do the same thing. I'm not worried about people without js though, but the facebook-js-files loads very slow and that slows down my whole site. Facebook doesn't work without js so i guess everyone who want to login with facebook on your site supports js.
But to the question. In the PHP-lib there is one method called get_login_url that you can use to get a sign-in-url for your app.
$connectUrl = $fb->get_login_url("http://www.yoursite.com/loggedin.php",0);
So you can make your own connect-button that links to that url. Once the user signed in facebook will redirect him back to the url you specify. If the user is already online on facebook he will be redirected back immediately.
What i'm still missing though is a possibility to check if a user is signed in on facebook already without forcing the user to click a login button. Havn't figured out any way to do that without javascript yet but i'll let you know if i find something.
Facebook works perfectly fine without js. It acts kind of similar to twitter's oauth process. check out facebook's mobile api.
to login using a PHP varible:
where $url_accept is where to send the user if they accept the login and $url_cancel if they decline.
$facebook_login_url = 'http://m.facebook.com/tos.php?api_key='.$FACEBOOK_API_KEY.'&v=1.0&next='.$url_accept.'&cancel='.$url_cancel;