Facebook Connect: no javascript?

Is it possible to write a website that uses a Facebook connection without JavaScript? I have a site that works fine using XFBML, but that (obviously) fails when I'm with JavaScript disabled.

I feel like it's possible using REST-api for Facebook , but I would still appreciate some pointers. This was discussed on the Facebook forum .

+3
source share
2 answers

I want to do the same. I'm not worried about people without js, but facebook-js files load very slowly, and it slows down my entire site. Facebook does not work without js, so I think everyone who wants to login to facebook on your site supports js.

But to the question. There is one method in PHP-lib called get_login_url that you can use to get the input URL for your application.

$connectUrl = $fb->get_login_url("http://www.yoursite.com/loggedin.php",0);

So you can create your own connection button that links to this url. As soon as the user is signed in to facebook, he will redirect him back to the URL you specified. If the user is already connected to the Internet, he will be immediately redirected.

, , , facebook, . Havn't - javascript, , - .

0

Facebook js. . facebook api.

var:

$url_accept - , $url_cancel, .

$facebook_login_url = 'http://m.facebook.com/tos.php?api_key='.$FACEBOOK_API_KEY.'&v=1.0&next='.$url_accept.'&cancel='.$url_cancel;
0

Source: https://habr.com/ru/post/1736070/


All Articles