By Austin Ramsdale on Tuesday, 28 April 2015
Replies 6
Likes 0
Views 0.9K
Votes 0
Hi everyone!

Can someone speed up my search? I have a site that a lot of users sign up via Facebook integration, but I want to (by default) have Facebook
"Automatically post to your Facebook account when you post a new story" set to NO.

Can someone point me in the right direction?
Hello Austin,

Currently, the only way for you to disable this by default is to edit the file /administrator/components/com_easysocial/models/registration.php and at line 450 locate the codes below:


public function createOAuthUser( $accessToken , $data , $client , $import = true , $sync = true )


Replace it with,


public function createOAuthUser( $accessToken , $data , $client , $import = true , $sync = false)
·
Tuesday, 28 April 2015 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Interesting find, in case anyone else is searching this out:

I was perplexed why ES was posting to Facebook, even though the app I created only requests login api information. But since I was logging in as the known admin/creator of the application, it was allowing ES to post to my timeline, regardless of it not being included in the "reviewed" facebook app.

Logged out, and into another user, and even with "Post on timeline" set to YES, it isn't posting over to facebook... so this might be a null issue.
·
Tuesday, 28 April 2015 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, perfect! Thank you Mark! Just what I wanted!
·
Tuesday, 28 April 2015 00:57
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome, glad to heard your issues resolved.
·
Tuesday, 28 April 2015 01:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, working with ES is proving to be very easy... even for the hacks I need to incorporate!

My main concern now is to see how ES Updates are handled. Are there some best practices that others have employed for dealing with hacks and updates? Does the launcher look for deltas in the file from what is expected, or is it automatically overwritten with the defaults if that file is included in the update?

In other words, how robust is the update process, and is there a manual update process in place for those of us who are making adjustments for our needs?
·
Tuesday, 28 April 2015 01:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Austin Ramsdale,

Unfortunately that was no better way to do this now, so you have to do the backup every time before you update in the future.
·
Tuesday, 28 April 2015 01:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post