Customizing SMF > Modifications and Packages

SA Facebook Integration

<< < (553/672) > >>

SA™:
one of the tokens is fo group pulishing if i rember correct so uless you are posting to a group you wont see that in other words it fine as is :)

do you have new permissions enabled in you fb app thi cab break publishing cos the mod dont work with the new permission from fb
thewe is some info on this not to far back in this topic

are you sing the auto reg method?  if so again a few pages back there is a fix for this basicly with the auto method the user dont get a pass cos it genarated auto i never got as far as to send it to the user

Texan78:

--- Quote from: SA™ on August 09, 2012, 10:44:31 AM ---one of the tokens is fo group pulishing if i rember correct so uless you are posting to a group you wont see that in other words it fine as is :)
--- End quote ---

I guess I am ok there as it is a fan/business page.


--- Quote from: SA™ on August 09, 2012, 10:44:31 AM ---do you have new permissions enabled in you fb app thi cab break publishing cos the mod dont work with the new permission from fb
--- End quote ---

Are there extended permissions on the Developers page for my App that need to be granted? If so where do I find those because I went to my app page and couldn't find anything related to it.

Only thing I clicked for granted extended permissions was this button in the image below after entered my User ID, having the Page ID did nothing, is the Page ID not needed just the User ID? Seems to me they are one in the same anyways? After clicking that button it populated my access tokens and then said Permissions granted and refreshed the page, but still nothing posts to the page on new topics.




--- Quote from: SA™ on August 09, 2012, 10:44:31 AM ---are you sing the auto reg method?  if so again a few pages back there is a fix for this basicly with the auto method the user dont get a pass cos it genarated auto i never got as far as to send it to the user
--- End quote ---

That's what is strange about it is no matter if it is Manual or Auto it just logs them in from FB as it's suppose to but user isn't aware of their password.

What is the preferred method to use?

-Thanks!

SA™:
in your app underad advance
 Remove offline_access permission:

is that enabled if so disable it sry this is what i ment ealer by this

--- Quote ---do you have new permissions enabled in you fb app thi cab break publishing cos the mod dont work with the new permission from fb
--- End quote ---
just couldent check it elayer


--- Quote ---That's what is strange about it is no matter if it is Manual or Auto it just logs them in from FB as it's suppose to but user isn't aware of their password.

What is the preferred method to use?
--- End quote ---

this is the thing if people have synced the account wiht fb then they will just get logged into the forum if not then it will present fb register page to register on forum

my prefered method is manual cos the user has to set up a password to register auto it doesnt reqire any input just registers them on the forum with no input and pass is auto genarated

the auto method was only added cos i was sick of people telling me thats the whole poiont of the mod when it wasnt realy most people dont understand that the auto method is not they way for this mod ok maybe for a html coded site but forums are a whole new ball game we need sevaral things like email and password in other words i would not recomend the auto method to anyone :)

just registerd on your site and you have it set to auto reg method you can delete wayne.dennis.712 if you wont

Texan78:
Thanks, SA for the reply. I found the setting you were referring to and will test that shortly. I found that code that will PM the user and it works great.

If anyone else is looking for it you can find the post here...

http://www.simplemachines.org/community/index.php?topic=365503.msg3345686#msg3345686

I am trying to modify the message so it is more custom and gives more information to the user what the password is good for. One thing I am wondering is if they update their password to one of their choice will it still sync with FB where they can login with the FB account?

So this is what I am trying to do with the message. Taking this code...


--- Code: ---$message = $txt['fb_password_welcome']; //the body of the pm
--- End code ---

Where instead of $message = $password; it inserts some text from the language file with the password in it like this...


--- Code: ---$txt['fb_password_welcome'] = 'Here is your password for the forum ' .$password. ' . You can use it to update your profile account setttings.';
--- End code ---


Text is just a exmaple, will update it more, but my question is will this work and is it formatted correctly?

UPDATE: Well the text part works, just not sure how to prperly fomat the code in the text to display the password. Would it be " . $password . " or could I just use $password?

-Thanks!

SA™:
you can  use sprintf() function

--- Code: ---sprintf($txt['fb_password_welcome'], $password)
--- End code ---
anf then

--- Code: ---$txt['fb_password_welcome'] = 'Here is your password for the forum %1$s . You can use it to update your profile account setttings.';
--- End code ---

then setup the pm like so


--- Code: ---//Set up the pm
    $title = 'Forum password'; //the title of the pm
    $message = sprintf($txt['fb_password_welcome'], $password); //the body of the pm
   
    $pmfrom = array(
        'id' => 0, //user id where the pm is from
        'name' => 'Admin', //name of the user who the pm is from
        'username' => 'Admin', //username of the user who the pm is from
    );
       
    $pmto = array(
        'to' => array($memberID),// array of ids to send the pm to
        'bcc' => array()//bbc array
    );

    //Now send it
    sendpm($pmto, $title, $message , 0, $pmfrom);
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version