• [MOD] Facebook Connector V1.0 & V2.0 5 0 5 1
Currently:  

Author Topic: [MOD] Facebook Connector V1.0 & V2.0  (Read 244384 times)

0 Members and 1 Guest are viewing this topic.

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #150 on: September 29, 2011, 04:47:09 PM »
Hi,

Thanks budduke you were right, I missed the code in sessions.php :P now its working perfect,

another issue (not related to this MOD) I have added facebook comments plugin in details.html file, every thing is fine except when a user comment on an image the comment also post on his profile with a BACK LINK to that image, when click on that link from facebook the user get to the page but cant see any comments there, it is because facebook add ?fb_comment_id=fbc_5007219748935_660290_5007219838935 and some unique id to every back link, can you help me how to remove that extra part from the url? I am using [MOD] Google Friendly Urls For 4images Best Seo Mod.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #151 on: September 29, 2011, 10:31:06 PM »
@khan,
Do you have a link where I can see this in action to understand it better?
Buddy Duke
www.budduke.com

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #152 on: October 03, 2011, 12:36:08 PM »
@budduke

sorry for late reply i was just out of town, you can check it here http://www.pukhtosongs.com/song-paroon-na-maloomedey-1596.html

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [MOD] Facebook Connector V1.0
« Reply #153 on: October 17, 2011, 08:07:30 AM »
Login gave me this error:

Fatal error: Call to a member function getLogoutUrl() on a non-object in /home/users2/d/***/domains/***/login.php on line 52

Line 52 in my login.php:

Code: [Select]
redirect($facebook->getLogoutUrl(array('next' => dirname(curPageURL()).'/'.$url)));
Thanks for help!

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #154 on: October 18, 2011, 01:59:37 AM »
Login gave me this error:

Fatal error: Call to a member function getLogoutUrl() on a non-object in /home/users2/d/***/domains/***/login.php on line 52

Line 52 in my login.php:

Code: [Select]
redirect($facebook->getLogoutUrl(array('next' => dirname(curPageURL()).'/'.$url)));
Thanks for help!

Make sure you placed the correct insert into ALL of these files, I think you might have forgot one...
Quote
in the categories.php, lightbox.php, member.php, register.php, rss.php, top.php, index.php, postcards.php, search.php, and details.php files...


@khan,
I see what you are seeing... I will not have time to look into it till Early November (booked up till then)
I am wondering if by placing your correct url in the return url area in the javascript for the comments, if that would acclomplish anything. Right now it is blank ""
Buddy Duke
www.budduke.com

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #155 on: December 16, 2011, 12:11:27 AM »
[MOD] Facebook Connector V2.0

This mod will give your users the ability to login to your 4images site using their Facebook account.
YOU MUST be running PHP Version 5 or greater with CURL and JSON running on your server for this mod to work.
check your phpinfo() or your provider to find out. My provider upgraded my account for free to the new PHP.

this mod is based on the facebook php-sdk kit that is available at...
http://github.com/facebook/php-sdk/

DEMO...
http://www.budduke.com

Version History...
2.0 - upgrade from old model (using facebook php-sdk kit version 3.1.1)

Version 2 of this mod now support the Auth 2.0 that Facebook has moved over to.
NOTE: If you have Version 1 of this Mod installed, You will need to remove all the code you placed in Version 1.0 before you proceed. You can leave the database entries but all the code inserts must be removed.
The old version mod steps can be found here.http://www.4homepages.de/forum/index.php?topic=27396.0


New facebook users will now have to "agree to terms" and "create a password" before gaining entry into your site.Facebook users that are already created from version 1 of this mod will not have to do the above steps.

This mod is in conjunction with my other mod
http://www.4homepages.de/forum/index.php?topic=29422.0
The like/send/share button so some of the steps may be the same as you are going through them.

Backup your database before continuing. This will make changes to your settings and user databases.

You will need to unzip the attached file to the root of your 4images gallery and run the facebook_install.php file to place the entries into your database. Delete this file after you have ran it once.
You will also have a facebook folder with the correct files in it after you expand the zip file.

The following files will be modified...
admin\settings.php
includes\db_field_definitions.php
includes\page_header.php
includes\sessions.php
lang\english\admin.php
lang\english\main.php
logout.php
register.php
templates\your template\header.html
templates\your template\register_form.html
templates\your template\user_loginform.html
templates\your template\user_logininfo.html


STEP 1.a (this insert is the same as my like/share/send MOD V3.1 Step 5.a)
in your admin/settings.php file
search for
Code: [Select]
// end of functionsInsert Before
Code: [Select]
//[MOD] Facebook
function show_fb_language_options($setting_name, $setting_value) {
  global $fb_language_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ($fb_language_optionlist as $key => $val) {
    echo "<option value=\"$key\"";
    if ($setting_value == $key) {
      echo " selected=\"selected\"";
    }
    echo ">".$val."</option>";
  }
  echo "</select>";
}
//END [MOD] Facebook

Step 1.b (this insert is the same as my like/share/send MOD V3.1 Step 5.b)
Search for
Code: [Select]
show_form_footer($lang['save_changes'], "", 2);
Insert Before
Code: [Select]
// [MOD] Facebook
  show_table_separator($setting_group["facebook"], 2, "setting_group_facebook");
  show_setting_row("fb_appid");
  if ($fb_mod_select==1 || $fb_mod_select==3){
   show_setting_row("fb_appsec");
  }
  if ($fb_mod_select>1){
   show_setting_row("fb_admins");
   show_setting_row("fb_title");
   show_setting_row("fb_main_url");
   show_setting_row("fb_image");
   show_setting_row("fb_description","textarea");
  }
  show_setting_row("fb_language","show_fb_language_options");
// END[MOD] Facebook

Step 2
in your includes\db_field_definitions.php file
Search for
Code: [Select]
?>Insert Before
Code: [Select]
//MOD facebook
$additional_user_fields['fb_userid'] = array($lang['fb_userid'], "text",0);
$additional_user_fields['fb_name'] = array($lang['fb_name'], "text",0);
$additional_user_fields['fb_pic_small'] = array($lang['fb_pic_small'], "text",0);
//end MOD facebook

Step 3
in your includes\page_header.php file
search for
Code: [Select]
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
insert Before
Code: [Select]
//MOD facebook
include_once (ROOT_PATH.'facebook/fbmain.php');
if (($user_info['user_level'] >= USER)&&($fb_flag==3)) {
   $site_sess->set_session_var("fb_flag", 0);
   $fb_flag=0;
   }
if ((!$fb_flag) && ($file!="register")) {
   fb_checkstatus();
   }
$fb['hide1']=$fb_flag>1?1:0;
$fb['hide2']=$fb_flag==3?1:0;
$fb['loggedin'] = $fb_session>0?1:0;
$site_template->register_vars(array(
   "fb_appid" => $config['fb_appid'],
   "fb_language" => isset($lang['fb_language']) ? $lang['fb_language'] : $config['fb_language'],
   "fb_hide1" => $fb['hide1'],
   "fb_hide2" => $fb['hide2'],
   "fb_message" => $lang['fb_message'],
   "fb_loggedin" => $fb['loggedin'],
   "fb_pic_small" =>$user_info['fb_pic_small'],
   "fb_userid"=>$user_info['fb_userid'],
   "fb_name"=>$user_info['fb_name'],
   "fb_logout_url"=>(ROOT_PATH=="./") ? "logout.php" : $site_sess->url($script_url."/".substr(ROOT_PATH,2)."logout.php"),
  ));
unset ($fb);
//end MOD facebook

Step 4
in your includes\sessions.php file
search for
Code: [Select]
function logout($user_id)insert Before
Code: [Select]
//MOD facebook
  function fb_login($user_name = "", $user_password = "", $auto_login = 0, $set_auto_login = 1) {
    global $site_db, $user_table_fields;

    if (empty($user_name) || empty($user_password)) {
      return false;
    }
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_password")."
            FROM ".USERS_TABLE."
            WHERE ".get_user_table_field("", "user_name")." = '$user_name' AND ".get_user_table_field("", "user_level")." <> ".USER_AWAITING;
    $row = $site_db->query_firstrow($sql);

    $user_id = (isset($row[$user_table_fields['user_id']])) ? $row[$user_table_fields['user_id']] : GUEST;
    if ($user_id != GUEST) {
      if ($row[$user_table_fields['user_password']] == $user_password) {
        $sql = "UPDATE ".SESSIONS_TABLE."
                SET session_user_id = $user_id
                WHERE session_id = '".addslashes($this->session_id)."'";
        $site_db->query($sql);
        if ($set_auto_login) {
          $this->set_cookie_data("userpass", ($auto_login) ? $user_password : "");
        }
        $this->start_session($user_id, 1);
        return true;
      }
    }
    return false;
  }
//END MOD facebook

Step 5 (this insert is the same as my like/share/send MOD V3.1 Step 6)
Note: first line $fb_mod_select=1 (change to 3 if using both mods)
in your lang\english\admin.php file
search for
Code: [Select]
?>insert Before
Code: [Select]
//[MOD] Facebook
$fb_mod_select=1; // 1="login button Mod", 2="like/share/send button Mod", 3="both Mods installed"
/*-- Setting-Group Facebook --*/
$setting_group["facebook"]="Facebook settings";
$setting['fb_appid'] = "Application ID";
$setting['fb_appsec'] = "Application Secret";
$setting['fb_admins'] = "List of facebook IDs as admins<br><span class=\"smalltext\">IDs seperated by commas</span>";
$setting['fb_main_url'] = "Full HTML path to your website<br><span class=\"smalltext\">What you placed in the connect URL on facebook</span>";
$setting['fb_image'] = "Full HTML path to your logo/image for your website";
$setting['fb_title'] = "What you would like the Main Title to say for your website";
$setting['fb_description'] = "Description displayed for your website<br><span class=\"smalltext\">HTML code will be removed</span>";
$setting['fb_language'] = "Default language to use for Facebook";
$fb_language_optionlist = array(
'ca_ES' => 'Catalan',
'cs_CZ' => 'Czech',
'cy_GB' => 'Welsh',
'da_DK' => 'Danish',
'de_DE' => 'German',
'eu_ES' => 'Basque',
'en_PI' => 'English (Pirate)',
'en_UD' => 'English (Upside Down)',
'ck_US' => 'Cherokee',
'en_US' => 'English (US)',
'es_LA' => 'Spanish',
'es_CL' => 'Spanish (Chile)',
'es_CO' => 'Spanish (Colombia)',
'es_ES' => 'Spanish (Spain)',
'es_MX' => 'Spanish (Mexico)',
'es_VE' => 'Spanish (Venezuela)',
'fb_FI' => 'Finnish (test)',
'fi_FI' => 'Finnish',
'fr_FR' => 'French (France)',
'gl_ES' => 'Galician',
'hu_HU' => 'Hungarian',
'it_IT' => 'Italian',
'ja_JP' => 'Japanese',
'ko_KR' => 'Korean',
'nb_NO' => 'Norwegian (bokmal)',
'nn_NO' => 'Norwegian (nynorsk)',
'nl_NL' => 'Dutch',
'pl_PL' => 'Polish',
'pt_BR' => 'Portuguese (Brazil)',
'pt_PT' => 'Portuguese (Portugal)',
'ro_RO' => 'Romanian',
'ru_RU' => 'Russian',
'sk_SK' => 'Slovak',
'sl_SI' => 'Slovenian',
'sv_SE' => 'Swedish',
'th_TH' => 'Thai',
'tr_TR' => 'Turkish',
'ku_TR' => 'Kurdish',
'zh_CN' => 'Simplified Chinese (China)',
'zh_HK' => 'Traditional Chinese (Hong Kong)',
'zh_TW' => 'Traditional Chinese (Taiwan)',
'fb_LT' => 'Leet Speak',
'af_ZA' => 'Afrikaans',
'sq_AL' => 'Albanian',
'hy_AM' => 'Armenian',
'az_AZ' => 'Azeri',
'be_BY' => 'Belarusian',
'bn_IN' => 'Bengali',
'bs_BA' => 'Bosnian',
'bg_BG' => 'Bulgarian',
'hr_HR' => 'Croatian',
'nl_BE' => 'Dutch (België)',
'en_GB' => 'English (UK)',
'eo_EO' => 'Esperanto',
'et_EE' => 'Estonian',
'fo_FO' => 'Faroese',
'fr_CA' => 'French (Canada)',
'ka_GE' => 'Georgian',
'el_GR' => 'Greek',
'gu_IN' => 'Gujarati',
'hi_IN' => 'Hindi',
'is_IS' => 'Icelandic',
'id_ID' => 'Indonesian',
'ga_IE' => 'Irish',
'jv_ID' => 'Javanese',
'kn_IN' => 'Kannada',
'kk_KZ' => 'Kazakh',
'la_VA' => 'Latin',
'lv_LV' => 'Latvian',
'li_NL' => 'Limburgish',
'lt_LT' => 'Lithuanian',
'mk_MK' => 'Macedonian',
'mg_MG' => 'Malagasy',
'ms_MY' => 'Malay',
'mt_MT' => 'Maltese',
'mr_IN' => 'Marathi',
'mn_MN' => 'Mongolian',
'ne_NP' => 'Nepali',
'pa_IN' => 'Punjabi',
'rm_CH' => 'Romansh',
'sa_IN' => 'Sanskrit',
'sr_RS' => 'Serbian',
'so_SO' => 'Somali',
'sw_KE' => 'Swahili',
'tl_PH' => 'Filipino',
'ta_IN' => 'Tamil',
'tt_RU' => 'Tatar',
'te_IN' => 'Telugu',
'ml_IN' => 'Malayalam',
'uk_UA' => 'Ukrainian',
'uz_UZ' => 'Uzbek',
'vi_VN' => 'Vietnamese',
'xh_ZA' => 'Xhosa',
'zu_ZA' => 'Zulu',
'km_KH' => 'Khmer',
'tg_TJ' => 'Tajik',
'ar_AR' => 'Arabic',
'he_IL' => 'Hebrew',
'ur_PK' => 'Urdu',
'fa_IR' => 'Persian',
'sy_SY' => 'Syriac',
'yi_DE' => 'Yiddish',
'gn_PY' => 'Guaraní',
'qu_PE' => 'Quechua',
'ay_BO' => 'Aymara',
'se_NO' => 'Northern Sámi',
'ps_AF' => 'Pashto',
'tl_ST' => 'Klingon'
);
//END [MOD] Facebook

Step 6
in your lang/english/main.php file
search for
Code: [Select]
?>insert Before
Code: [Select]
//MOD facebook
$lang['fb_userid'] = "Facebook User ID";
$lang['fb_name'] = "Facebook User Name";
$lang['fb_pic_small'] = "Facebook Picture link";
$lang['fb_message'] = "Your account has not been activated yet.";
$lang['fb_password'] = "Password to be used<br>for access to this site:";
$lang['fb_register_success'] = "You are now registered.";
//END MOD facebook

Step 7
in your logout.php file
search for
Code: [Select]
require(ROOT_PATH.'includes/sessions.php');insert After
Code: [Select]
//MOD facebook
$site_sess->set_session_var("fb_flag", 0);
$fb_flag=0;
include_once (ROOT_PATH.'facebook/fbmain.php');
fb_checkstatus();
//END MOD facebook

Step 8.a
Note: read insert line that begins with $captcha_enable_registration=0;
in your register.php file
search for
Code: [Select]
//-----------------------------------------------------
//--- Add New User ------------------------------------
//-----------------------------------------------------
insert Before
Code: [Select]
//MOD facebook
if ($action == "register" && $fb_flag == 2){
   if (!$HTTP_POST_VARS['user_name']){
      $tempuser = $fb_info[0]['name'];
     
      $tempuser = preg_replace("/ /","_",$fb_info[0]['name']);
      $found=false;
      $i=0;
      while (!$found){
         $user=$tempuser.($i==0?"":$i);
         $sql="SELECT count(*) from ".USERS_TABLE." where user_name='".$user."'";
         $row = $site_db->query_firstrow($sql);
         if ($row[0]!=0) $i++; else $found=true;
         }
      $HTTP_POST_VARS['user_name']=$user;
      }
   $captcha_enable_registration=0;// change to 1 if you want New facebook users to enter captcha
   }
if ($fb_flag == 2){
   $HTTP_POST_VARS['user_email'] = $fb_info[0]['email'];
    $site_template->register_vars(array(
      "fb_password" => $lang['fb_password'],
     ));
   }
//END MOD facebook

Step 8.b
search for
Code: [Select]
$msg = $lang['register_success']insert After
Code: [Select]
      //MOD facebook
      $site_sess->set_session_var("fb_flag", 3);
      $fb_flag=3;
      //END MOD facebook

Step 8.c
search for
Code: [Select]
$msg = $lang['register_success_none'];insert After
Code: [Select]
       //MOD facebook
      if ($fb_flag>1){ $msg=$lang['fb_register_success'];}
       $site_sess->set_session_var("fb_flag", 0);
      $fb_flag=0;
      //END MOD facebok

Step 8.d
search for
Code: [Select]
$msg = $lang['activation_success'];insert After
Code: [Select]
     //MOD facebook
     $site_sess->set_session_var("fb_flag", 0);
     $fb_flag=0;
     //END MOD facebok

Step 9.a(this insert is the same as my like/share/send mod V3.1 step 2.a)
in your templates/your template/header.html file
search for
Code: [Select]
<html dir="{direction}">Replace with
Code: [Select]
<html dir="{direction}" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
Step 9.b(this insert is the same as my like/share/send mod V3.1 step 2.c)
At the end of the page insert
Code: [Select]
<div id="fb-root"></div>
    <script>
  window.fbAsyncInit = function() {     
        FB.init({
          appId: '{fb_appid}',
          cookie: true,
          xfbml: true
        });
        FB.Event.subscribe('auth.logout', function(response) {
          window.location = '{fb_logout_url}';
        });
      };
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +
          '//connect.facebook.net/{fb_language}/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
</script>

Step 10.a
in your templates/your template/user_loginform.html file
search for
Code: [Select]
<form action="{url_login}" method="post">insert Before
Code: [Select]
{ifnot fb_hide1}
Step 10.b
search for
Code: [Select]
» <a href="{url_lost_password}">{lang_lost_password}</a><br />insert After
Code: [Select]
     {endifnot fb_hide1}
     {ifnot fb_hide2}

Step 10.c
search for
Code: [Select]
» <a href="{url_register}">{lang_register}</a><br>&nbsp;</td>insert After
Code: [Select]
     {endifnot fb_hide2}
     {if fb_hide2}
     {fb_message}
     {endif fb_hide2}

Step 10.d
search for
Code: [Select]
</table>insert Before
Code: [Select]
  <tr><td valign="top" align="center">
  {if fb_loggedin}
   <table width="100%" border="0"><tr><td align="right">
   <fb:profile-pic uid='loggedinuser' facebook-logo='false'></fb:profile-pic></td><td valign="center" align="left"> Welcome,<BR> <fb:name uid='loggedinuser' useyou='false'></fb:name>
   </td></tr></table>
{endif fb_loggedin}
      <fb:login-button size="small" length="long" autologoutlink="true" scope="email,user_website,publish_stream" ></fb:login-button>
    </td></tr>

Step 11.a
in your templates/your template/user_logininfo.html file
search for
Code: [Select]
<a href="{url_control_panel}">{lang_control_panel}</a><br />insert After
Code: [Select]
{ifnot fb_loggedin}
Step 11.b
search for
Code: [Select]
<a href="{url_logout}">{lang_logout}</a><br>&nbsp;</td>insert After
Code: [Select]
{endifnot fb_loggedin}
Step 11.c
search for
Code: [Select]
</table>insert Before
Code: [Select]
   <tr><td valign="top" align="center">
{if fb_loggedin}
   <table width="100%" border="0"><tr><td align="right">
   <img src="{fb_pic_small}"></img></td><td valign="center" align="left"> Welcome,<BR> <a href="http://www.facebook.com/profile.php?id={fb_userid}">{fb_name}</a>
   </td></tr></table>
{endif fb_loggedin}
      <fb:login-button size="small" length="long" autologoutlink="true" scope="email,user_website,publish_stream" ></fb:login-button>
    </td></tr>

Step 12
in your templates/your template/register_form.html file
search for
Code: [Select]
{lang_password}Replace with
Code: [Select]
{if fb_password}{fb_password}{endif fb_password}{ifnot fb_password}{lang_password}{endifnot fb_password}
after you are finished going through the steps, you will find in the admin control panel, under settings,
you will see facebook settings, this is where you will put the info for your facebook application to make this mod work.
How do you make a facebook application? this link will give you the steps. they are a little outdated but should still get you on the right track until I have a chance to redo them.
http://www.4homepages.de/forum/index.php?topic=29422.msg157086#msg157086
« Last Edit: January 22, 2012, 09:19:09 PM by budduke »
Buddy Duke
www.budduke.com

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #156 on: January 23, 2012, 06:19:28 PM »
Version 2 of this mod has been posted.
http://www.4homepages.de/forum/index.php?topic=27396.msg160225#msg160225

the steps for creating an app on facebook are a little different and easier then before.
go to
http://developers.facebook.com
click on "apps" at the top.
"Create new App"
Give name,
app domain,
category (if needed)
Click on "website" and enter the path to your gallery.
And press "save changes"

See attached PDF
Buddy Duke
www.budduke.com

Offline sathishIPL

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #157 on: January 30, 2012, 06:57:12 AM »
Hi Duke,

I have implemented the mod.

Thanks for wonderful mod.

everything works fine for me .Except when i logout , am able to logout from facebook.

But not from the 4images.

Its different one .
Are you using GRAPH API to connect?

 I am currently developing Upload a photo to Facebook. It is not redirecting to the current URL in Firefox.

Here is the logic -> A upload Facebook submit button will be placed under the images- when a user click the upload Facebook button -> it will check for two things

1.If Valid FB session - the Images will be uploaded to user photo albums
2.If not it will be redirect to Facebook login page-> once the user login again he/she will be redirected to particular action called upload Facebook[here it is not redirected to correctly to the action]

Thank You...!

best regards,
Satz

« Last Edit: January 30, 2012, 01:28:07 PM by sathishIPL »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #158 on: January 30, 2012, 08:03:20 PM »
@sathishIPL,

The logout should work if everything is placed correctly. Since the logout is a javascript command at the browser, I have seen it make a second or 2 delay before it actually logs out of the site but it does work. You can test at my site.
If you zip all your changed files, I will look them over to make sure I did not forget to put something in the instructions, But I went over them twice and it worked both times.

The file upload is a different story. It is allot more involved then what you are thinking. I have found some PHP created scripts that handle most of it. The problem is, you have to be able to select the album or create a new one when you are sending an image to facebook.
I am going to work on this in the near future, not ETA though :( too many other things going on right now.
I am going to try to make it so you can go both ways, bring images from facebook to your gallery and take images from your gallery to facebook, either as the lightbox selected images, or one at a time, like you were saying with a button "send image to facebook" or something like that.
I thought it would be a simple call, but with the security in place, it is a little more work to make it happen.
Buddy Duke
www.budduke.com

Offline sathishIPL

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #159 on: February 07, 2012, 12:07:53 PM »
HI Budduke,

I was out of town.

It is working without any issues when other users logged using Facebook account.

Only the logout issue  is happening , when i login.

Thank You...!

Best regards,
Satz

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #160 on: February 07, 2012, 07:50:39 PM »
It is working without any issues when other users logged using Facebook account.

Only the logout issue  is happening , when i login.

Can you give me a link so I can see the problem?
Not sure what you are asking. When I logout of facebook, it logs me out of the 4images site also.
When you login with just 4images, it should just stay as "login with facebook" and not change.
If you then "login with facebook" while you are already connected with 4images account. it will log you out and back in with whatever account is associated with the facebook account in your database.

Sidenote: I got an image to upload to my Facebook album in PHP last weekend. It can be done, now working on an interface to connect it wil 4images download.
Buddy Duke
www.budduke.com

Offline szymanski

  • Newbie
  • *
  • Posts: 21
    • View Profile
Bugs
« Reply #161 on: March 02, 2012, 03:27:14 AM »
BUG REPORT

If this mod doesn't work in FF or IE please use this Doctype:

Change header.html on the top to
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


Redirecting after Facebook Login oder Logout to the last page,
open logout.php and find
redirect("index.php");



and replace with


redirect
("$HTTP_REFERER");




If you want to use a larger picture than the small one,
then use this code:
<fb:profile-pic uid="{fb_userid}" size="normal">


Thank you budduke for this good mod!
Greetings Daniel

Offline nicogd93

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #162 on: March 30, 2012, 06:32:47 AM »
Alguna solucion para mi error.
Cuando inicio en facebook me tira lo siguiente:

Warning: Cannot modify header information - headers already sent by (output started at /home/topfashi/public_html/home/lang/spanish/main.php:787) in /home/topfashi/public_html/home/includes/functions.php on line 114

la web es xxx: topfashionlikexxx: /home/
 
HELP

Rembrandt

  • Guest
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #163 on: March 30, 2012, 06:59:08 AM »
Welcome to the Forum!
...
Warning: Cannot modify header information - headers already sent by ....
read this: http://www.4homepages.de/forum/index.php?topic=3378.0

mfg Andi

Offline sathishIPL

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [MOD] Facebook Connector V1.0 & V2.0
« Reply #164 on: April 13, 2012, 06:24:58 PM »
Hi Budduke,

Facebook Redirection is not working when i disable the Register actviation code by email.

Br,
satz


 

Post your comments here