vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   vBulletin on a Facebook page? (https://vborg.vbsupport.ru/showthread.php?t=322760)

silvermerc 06-02-2016 08:30 PM

vBulletin on a Facebook page?
 
Hi,

As some of you may know, im sure it was located here;

https://www.facebook.com/vbulletin/app/241880542500773/

Do these still work on your Facebook pages? If so can you post yours. Im looking to re-install my vBulletin so I can use it for a popular page.

Thanks
Ross

Paul M 06-02-2016 08:34 PM

The app was discontinued some years ago now, those installed a few years ago may still function, but it would not install and work now.

silvermerc 06-02-2016 08:38 PM

Quote:

Originally Posted by Paul M (Post 2571565)
The app was discontinued some years ago now, those installed a few years ago may still function, but it would not install and work now.

Ah man, was it just a simple iFrame? or was it a plugin? wonder if anyone has remade one..

BirdOPrey5 06-03-2016 04:09 PM

While an IFrame was part of it, it was much more than that, signficant custom vBulletin code was needed.

TheAdminMarket 06-28-2016 08:58 AM

To use vBulletin as a Facebook TAB application (does not works in normal FB profiles and also in Facebook groups), all you need is:

1.- To operate your site in SSL

2.- Your style must be fluid (100% width) or, if it's fixed, 810px width

3.- To add in the headinclude template
Code:

<style type="text/css">
        overflow:auto;
        overflow-x:hidden;
</style>

4.- To add at the end of footer template (just above </body>):
Code:

<div id="fb-root"></div>
<script type="text/javascript" src="//connect.facebook.net/en_US/all.js"></script>
<script>
        FB.init({
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                xfbml : true // parse XFBML
        });
</script>
<script type="text/javascript">
        FB.Canvas.setSize();
        window.fbAsyncInit = function () {
                FB.Canvas.setAutoResize();                       
        }
        FB.Canvas.scrollTo(0,0);
</script>

With the above modifications I was able to use vBulletin as Facebook tab application without any problem and without any plugin (even without the old vB FB app). Just keep in mind that you must have activated (and working) the Facebook connect in your site.

If your Facebook connect in your site does not works, still you can use vBulletin in FB, but in this case you must do some extra work by including and setting FB SDK. This can be done (as example only) by creating a php file with content:

Code:

        // Required Facebook PHP SDK v4.0.9 or later.
        // Include required files form Facebook SDK
        require_once( 'Facebook/HttpClients/FacebookHttpable.php' );
        require_once( 'Facebook/HttpClients/FacebookCurl.php' );
        require_once( 'Facebook/HttpClients/FacebookCurlHttpClient.php' );
        require_once( 'Facebook/Entities/AccessToken.php' );
        require_once( 'Facebook/Entities/SignedRequest.php' );
        require_once( 'Facebook/FacebookSession.php' );
        require_once( 'Facebook/FacebookRedirectLoginHelper.php' );
        require_once( 'Facebook/FacebookSignedRequestFromInputHelper.php' ); // added in v4.0.9
        require_once( 'Facebook/FacebookRequest.php' );
        require_once( 'Facebook/FacebookResponse.php' );
        require_once( 'Facebook/FacebookSDKException.php' );
        require_once( 'Facebook/FacebookRequestException.php' );
        require_once( 'Facebook/FacebookOtherException.php' );
        require_once( 'Facebook/FacebookAuthorizationException.php' );
        // these two classes required for canvas and tab apps
        require_once( 'Facebook/FacebookCanvasLoginHelper.php' );
        require_once( 'Facebook/FacebookPageTabHelper.php' );
        require_once( 'Facebook/GraphObject.php' );
        require_once( 'Facebook/GraphSessionInfo.php' );
        use Facebook\HttpClients\FacebookHttpable;
        use Facebook\HttpClients\FacebookCurl;
        use Facebook\HttpClients\FacebookCurlHttpClient;
        use Facebook\Entities\AccessToken;
        use Facebook\Entities\SignedRequest;
        use Facebook\FacebookSession;
        use Facebook\FacebookRedirectLoginHelper;
        use Facebook\FacebookSignedRequestFromInputHelper; // added in v4.0.9
        use Facebook\FacebookRequest;
        use Facebook\FacebookResponse;
        use Facebook\FacebookSDKException;
        use Facebook\FacebookRequestException;
        use Facebook\FacebookOtherException;
        use Facebook\FacebookAuthorizationException;
        use Facebook\GraphObject;
        use Facebook\GraphSessionInfo;
        // these two classes required for canvas and tab apps
        use Facebook\FacebookCanvasLoginHelper;
        use Facebook\FacebookPageTabHelper;       
        // Initialize Facebook Connection
        FacebookSession::setDefaultApplication( ''.APP_ID.'',''.APP_SECRET.'' );
        // init login helper
        $helper = new FacebookRedirectLoginHelper( ''.APP_TAB_LINK.'' );
        // init page tab helper
        $pageHelper = new FacebookPageTabHelper();
        // get session from the page
        $session = $pageHelper->getSession();

As I said the last code is just an example. Is not the complete code. But I don't think that you'll need it. The included with vB Facebook connect works fine and is easy to activate it. The only addition is that you need SSL connection.

Christos


All times are GMT. The time now is 06:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01409 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete