Advertisement:

Author Topic: SA Facebook Integration  (Read 1034858 times)

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1100 on: December 13, 2010, 12:25:36 AM »
i have fixed this in rc4 i will try to realese this somtime this week give my testers a chnae to test things :)
http://samods.github.io/SAChatBar/

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1101 on: December 13, 2010, 05:44:46 AM »
thanks
can you share modified file so I just replace that instead of removing old version and installing new

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1102 on: December 13, 2010, 12:00:27 PM »
sure in surces/fb_connect/fb_connect.php

find

Code: [Select]
require_once($sourcedir . '/Profile.php');
loadCustomFields(0, 'register');

after add

Code: [Select]
// Or any standard ones?
if (!empty($modSettings['registration_fields']))
{
require_once($sourcedir . '/Profile-Modify.php');

// Setup some important context.
loadLanguage('Profile');
loadTemplate('Profile');

$context['user']['is_owner'] = true;

// Here, and here only, emulate the permissions the user would have to do this.
$user_info['permissions'] = array_merge($user_info['permissions'], array('profile_account_own', 'profile_extra_own'));
$reg_fields = explode(',', $modSettings['registration_fields']);

// We might have had some submissions on this front - go check.
foreach ($reg_fields as $field)
if (isset($_POST[$field]))
$cur_profile[$field] = $smcFunc['htmlspecialchars']($_POST[$field]);

// Load all the fields in question.
setupProfileContext($reg_fields);
}

in fb_connect.template.php

find

Code: [Select]
echo'<h4 class="titlebg"><span class="left"></span>
'.$txt['fb_reg45'].'
</h4>';

after add

Code: [Select]
foreach ($context['profile_fields'] as $key => $field)
{

echo '<dl class="register_form">
<dt>
<strong', !empty($field['is_error']) ? ' style="color: red;"' : '', '>', $field['label'], '</strong>';

// Does it have any subtext to show?
if (!empty($field['subtext']))
echo '
<span class="smalltext">', $field['subtext'], '</span>';

echo '
</dt>
<dd>';

// Want to put something infront of the box?
if (!empty($field['preinput']))
echo '
', $field['preinput'];

// What type of data are we showing?
if ($field['type'] == 'label')
echo '
', $field['value'];

// Maybe it's a text box - very likely!
elseif (in_array($field['type'], array('int', 'float', 'text', 'password')))
echo '
<input type="', $field['type'] == 'password' ? 'password' : 'text', '" name="', $key, '" id="', $key, '" size="', empty($field['size']) ? 30 : $field['size'], '" value="', $field['value'], '" tabindex="', $context['tabindex']++, '" ', $field['input_attr'], ' class="input_', $field['type'] == 'password' ? 'password' : 'text', '" />';

// You "checking" me out? ;)
elseif ($field['type'] == 'check')
echo '
<input type="hidden" name="', $key, '" value="0" /><input type="checkbox" name="', $key, '" id="', $key, '" ', !empty($field['value']) ? ' checked="checked"' : '', ' value="1" tabindex="', $context['tabindex']++, '" class="input_check" ', $field['input_attr'], ' />';

// Always fun - select boxes!
elseif ($field['type'] == 'select')
{
echo '
<select name="', $key, '" id="', $key, '" tabindex="', $context['tabindex']++, '">';

if (isset($field['options']))
{
// Is this some code to generate the options?
if (!is_array($field['options']))
$field['options'] = eval($field['options']);
// Assuming we now have some!
if (is_array($field['options']))
foreach ($field['options'] as $value => $name)
echo '
<option value="', $value, '" ', $value == $field['value'] ? 'selected="selected"' : '', '>', $name, '</option>';
}

echo '
</select>';
}

// Something to end with?
if (!empty($field['postinput']))
echo '
', $field['postinput'];

echo '
</dd></dl>';

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

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1103 on: December 13, 2010, 01:23:17 PM »
Great Its Work.........Thanks

Offline eric1234

  • Full Member
  • ***
  • Posts: 683
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1104 on: December 15, 2010, 07:10:27 AM »
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.

This messages pop out when i am trying to log into my forum using the mods.

After setting up the application
 i log into admin and access the mods

and head to main setting

than enable fan page and change the codes of  " Your applications page id
can be found in you applications url "  to my Application ID in the application section

Replace Facebook Application Key with API key

and also

Replace Facebook Application Secret with Application Secret from the application site.

So did i missed out something or some error?

By the way,  there's 2 " connect to facebook " button located at the headers of my forum. May i know how can i change it to just 1 button just like what in this current forum, which got only 1 button instead of 2. 

Pardon my English . :D

Offline ilovelouis

  • Semi-Newbie
  • *
  • Posts: 29
    • ชมรมคนรัก กระเป๋าหลุยส์
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1105 on: December 15, 2010, 10:43:32 AM »
thanks  ;)

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1106 on: December 15, 2010, 02:06:42 PM »
@
eric1234
whats website url did you use in you app
http://samods.github.io/SAChatBar/

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1107 on: December 15, 2010, 02:36:08 PM »
is there any link to share with friends on facebook to register them through facebook on our site
or
any invitation system
..
it will be a great feature

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1108 on: December 15, 2010, 03:09:06 PM »
this?

your_site_url/index.php?action=facebook;area=invite
http://samods.github.io/SAChatBar/

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1109 on: December 15, 2010, 03:27:35 PM »

Fatal error: Uncaught Exception: 601: Parser error: unexpected ')' at position 70. thrown in /home/****/public_html/fbc/facebook.php on line 425

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1110 on: December 15, 2010, 03:56:36 PM »
what is the url link of f Login button?
I want to directly share the url link of F login button to facebook friends
..
please

Offline rafli

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1111 on: December 16, 2010, 12:47:16 AM »
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.

This messages pop out when i am trying to log into my forum using the mods.

Hi Eric,
I installed SA Facebook Connect this morning and got same result. I use Pretty url mod. I try to do maintain pretty url in pretty url section and this error is fix. I hope this help, if you also use pretty url mod.

Offline rafli

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1112 on: December 16, 2010, 12:57:24 AM »
Hi All,
I have installed mod SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip . My forum is SMF 1.1.12. I have no error installing it, nor manual install.
However, It keep show error message like this when I try to unsync account.
Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID_MEMBER = 1
LIMIT 1' at line 4
File: /home/.../Sources/Subs.php
Line: 631

The rest of features is function well.
I am no programmer, guys. So please kindly help me.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1113 on: December 16, 2010, 12:08:02 PM »
try using the 0.2 version the persone who was developing the sm1 version has abandond the 1.0 beta version so it will be removed soon
http://samods.github.io/SAChatBar/

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1114 on: December 16, 2010, 12:13:51 PM »
in our website only F Login Button Show

is it possible text show with button like (login with facebook)

as in attached picture

can I put facebook login on other page?

like www.exapmle.com/fb/login.php

etc

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1115 on: December 16, 2010, 12:16:25 PM »
in subs.php in function show_facebook(){

you can chnage '.$txt['fb_login'].' to what ever you wanted
http://samods.github.io/SAChatBar/

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1116 on: December 16, 2010, 12:37:43 PM »
in subs.php in function show_facebook(){

you can chnage '.$txt['fb_login'].' to what ever you wanted

sorry I don't understand

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1117 on: December 16, 2010, 10:59:22 PM »
SA Fb Connect RC4 realsed

added better unsync support
now uses session login url
added some secrity checks during login
fixed standerd profile feilds not showing on fb reg
added option to enable disable fb reg/login
added more check to see if user is allready suynced with another account when sycing forum account
removed some uneeded code from fb_connect_subs.php
fixed like on boardindex not showing atall
fixed undefined imdex site slogon
moved language strings to there own files
fixed uninstall errors
added supprt for core theme
http://samods.github.io/SAChatBar/

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

Offline OnlineFunCorner

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Online Fun Corner
    • @OnlineFunCorner on Twitter
    • Online Fun Corner
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1118 on: December 17, 2010, 04:15:43 AM »
in subs.php in function show_facebook(){

you can chnage '.$txt['fb_login'].' to what ever you wanted

I did not find .$txt['fb_login'] in subs.php

Offline !RFAN

  • Sr. Member
  • ****
  • Posts: 716
  • Gender: Male
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #1119 on: December 17, 2010, 06:24:56 AM »
The new version of this mod works with smf2 rc3 or not?