Go Back   vb.org Archive > Community Central > Community Lounge
  #1  
Old 06-02-2016, 08:30 PM
silvermerc silvermerc is offline
 
Join Date: Apr 2006
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 06-02-2016, 08:34 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 06-02-2016, 08:38 PM
silvermerc silvermerc is offline
 
Join Date: Apr 2006
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
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..
Reply With Quote
  #4  
Old 06-03-2016, 04:09 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While an IFrame was part of it, it was much more than that, signficant custom vBulletin code was needed.
Reply With Quote
  #5  
Old 06-28-2016, 08:58 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 PM.


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.03810 seconds
  • Memory Usage 2,201KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete