News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SA Facebook Integration

Started by SMFHacks.com Team, February 12, 2010, 01:36:11 PM

Previous topic - Next topic

ProtoGT

SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip is what I installed.

Spoogs

Quote from: ProtoGT on November 03, 2010, 05:25:38 PM
SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip is what I installed.
Did you select which boards are like boards in the ACP

ProtoGT


Sincere

I have translated to French the user-side english sentences in the install.xml file.
now when I try to upload this file, I have an error message telling me the file is corrupt.

The package you tried to upload either is not a valid package or has become corrupted.

Why is that ? am attaching the "french_included" version I made as my little contribution to this mod.

Do you need a special mod for your smf forums? contact me for a quote.

maihannijat

Now I am able to to connect with Facebook button I have redirect all Facebook http to https:// .

Question: Why I was not able to connect from my Forum and at same time I was able to connect from other Forum?

Same PC same browser and Same secure connection, with other Forums no problem but I had only with mine.

parvaz

Hi,
there are 4 versions on the mod site.
which version would be the right one for me?
I use smf 2.0 RC3 with simple portal, ultimate profile & couple of other mods. Any known conflicts with other mods?

I appreciate any help.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

FireDart

SA™
1) Thanks for creating the mod!
2) I am having the same problem as maihannijat, am using a custom template, no mods, and I have gone in manually and found what makes the FBC work and put it in my custom template.

When I click on the "Facebook Connect" link it just puts "#" at the end. So I think I missed some JS somewhere.

Also I found that am getting "Invalid Application ID" from a page called:
facebook.com/external/login_status.php etc.....

I know I have the right App. ID so that part am baffled.

Maybe I missed something, I don't know but could you either post what make FBC work or check my file?

Thanks,
-FD

SA™

find in that file

echo $context['html_headers'], '

after add


global $boardurl, $modSettings;
echo'<script src="'.$boardurl.'/fbc/fbconnect.js" type="text/javascript"></script>
<script type="text/javascript">
var mod_settings_fb_app_pageid = "',$modSettings['fb_app_pageid'],'";
var mod_settings_fb_app_stream = "',$modSettings['fb_app_stream'],'";
var mod_settings_fb_app_connection = "',$modSettings['fb_app_connection'],'";
var mod_settings_fb_app_width = "',$modSettings['fb_app_width'],'";
var mod_settings_fb_com_xid = "',$modSettings['fb_app_comments_boxid'],'";
var mod_settings_fb_com_show = "',$modSettings['fb_admin_commets_post'],'";
</script>';
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

FireDart

SA™ thanks but am stilling having some issues. It does load the javascript and creates the pop-up but...
I get this error:
QuoteInvalid API key specified


The application you are trying to access does not exist or has been disabled.

Simple right? I checked the API key and it matches, what is weird thought is that it works with the core theme but not the custom them.

I attached the new index.template.php file.

Thanks for your quick response, much appreciated.

maihannijat


Mihac™

The modification is very good.
Is there any possibility that the comments from the first page moved under each theme, and "Comments Box XID" an automatic topic title?
Example:

"kad budala postavi neko glupo pitanje ni deset mudraca ne može na njega odgovoriti "

SA™

Quote from: maihannijat on November 08, 2010, 01:59:45 AM
From where I can find my Comment Box ID?

ther eis no comments box id you meant xid? right

that is a unique identifier for the comments box in other words it can be anything you wanted eg your user name maybe it has to be unique for each site othwer wise the comment will fail to load
Quote from: Mihac on November 08, 2010, 03:56:01 AM
The modification is very good.
Is there any possibility that the comments from the first page moved under each theme, and "Comments Box XID" an automatic topic title?
Example:

yes it is doable only problem is that i diont have time to do it right now
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

maihannijat

#993
I have tried to add SA code for my custom theme. but no success

I am using Orange-lt theme. I attached my index.template.php file.

I will appreciate anyone help me with it.

Thanks




Any update on this? My 2 forums are base on this template.

qubbah

Tired to change it.. because im not using default theme.
For several timessss..  so tired
O:)
hope somebody can help me..


SA™

SA_FBConnect 1.0 RC2-3 rev280

small update that fixes profile badges show for the wrong people issue

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

FireDart

SA™ can you tell me where you are pulling $modSettings['fb_app_key'], $modSettings['fb_app_secret'], and any other $modSettings?

When I do:
echo "KEY:" . $modSettings['fb_app_key'];
echo "<br />KEY:" . $modSettings['fb_app_secret'];


It echos only:
KEY:
KEY:

Did something get skipped in the install process? It still works great on the core template but on a custom template I still can't get the api to work.

BTW this is what is around it, and it should work since it's calling a global before the echo, so it should already have the api info right?
function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;
echo "KEY:" . $modSettings['fb_app_key'];
echo "<br />KEY:" . $modSettings['fb_app_secret'];
echo'
   <script type="text/javascript">
   FB.init("'.$modSettings['fb_app_key'].'",
   "'.$boardurl.'/fbc/xd_receiver.htm",
   {"doNotUseCachedConnectState":true });
   function doLoggedOutFacebookUser(){
   FB.Connect.logout(function(){location.href = "'.$scripturl.'?action=logout;sesc='.$context['session_id'].'";});
   }
</script>';

SA™

replace

global $context, $settings, $options, $scripturl, $txt;

with

global $context, $settings, $options, $scripturl, $txt, $modSettings;
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

FireDart

Thank you so much, I can't believe I over looked that. I assumed it was there!

Also it should be:
global $context, $settings, $options, $scripturl, $boardurl, $boarddir, $txt, $modSettings;

You need:
$boardurl, $boarddir, & $modSettings.

Thanks SA™!

gameballa

Thanks for creating this MOD!!!

Just one question

After one of my members have logged in using facebook connect I want to send them to the index.php page rather than forum page....
Online Videogame Competitions = Play 4 Free or 4 Cash @ GamerComp.com


"The only way you will ever have peace is if you no longer believe the lie is true"

Advertisement: