By Hideto on Friday, 30 June 2017
Posted in Technical Issues
Replies 29
Likes 0
Views 782
Votes 0
Hello,

I'd like to ask for your help setting up Facebook Autoposting for Authors.
I've followed the instruction on:
https://stackideas.com/docs/easyblog/administrators/autoposting/facebook-autoposting

Now I'm at the stage of testing the Facebook app before submitting it for review/approval.
In order to submit for review, I think I need to let test user to be able to demonstrate how it works.

I've created a test user within fb app configuration page.
And testing if EasyBlog can autopost to test user's facebook account, but I cannot get it work.

Below are my settings:

Backend:
Auto Posting > Facebook >
- Application Settings: ID & Secret are entered. Connected to my Facebook account.
- Allow Authors to use their Facebook Account: Yes
(screenshot attached)

Frontend user's ACL > Profile > Update Facebook: Yes

Frontend:
- Logged in as frontend user > Profile > Facebook > Allow Access: Connected to test user's Facebook account.
- Enabled by default: OFF
(screenshot attached)

When frontend user created a new post, enabled Social Publishing by checking Facebook option.
But the post was never published on tester's Facebook account.
In the backend Auto Posting logs, it is recorded as "Invalid OAuth access token."
(I've checked test user's Access Token with facebook's Access Token Debugger. Screenshot attached.)

It would be great help if you can kindly check our app settings.
If it's OK with you, please provide me your fb ID or username so that I can add you as a Tester or Developer on fb developer's console.


FYI: If I enable "Autopost On New Post" option in Facebook Autoposting settings, the posts created by the frontend tester were published on my own Facebook account.
(What I need is that the posts created by frontend users will be published on their own Facebook account's timeline.)


Credentials necessary for testing are enclosed.

Thanks,
rikao
Hi there,

It would be best if you can provide us with admin permission on this FB https://www.facebook.com/fadhlistackideas on this id 100011669941812

Please advice.
·
Friday, 30 June 2017 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Warith,

Thanks for your reply.
I've added your account as a developer.

rikao
·
Friday, 30 June 2017 15:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Maybe you can try to sign in again with your main Facebook(facebook app creator) on your backend and see how it goes
·
Friday, 30 June 2017 16:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for checking.
But still I cannot get autoposting work...

On the backend, I signed in with my main Facebook account (app creator).
On the frontend, I logged in as a test user and revoked facebook access once and re-signed in as fb test user.
Created a new post with facebook option enabled, but nothing happens on test user's facebook account.

Will you be able to post on test user's facebook timeline?


rikao
·
Friday, 30 June 2017 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I forgot to mention about this:

When I signed in with my facebook account on the backend, the following error messages are shown on the top of the screen.


Notice: Undefined index: data in .../administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php on line 460

Warning: Invalid argument supplied for foreach() in .../administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php on line 460

Notice: Undefined index: data in .../administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php on line 483

Warning: Invalid argument supplied for foreach() in .../administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php on line 483
·
Friday, 30 June 2017 16:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You have to complete steps 7 on this docs https://stackideas.com/docs/easyblog/administrators/autoposting/facebook-autoposting as you are required to submit for review as quoted below and wait for Facebook approval first and then revoked those Facebook access again and re-try again.

EasyBlog requires 3 more extra permissions for publishing the blogs. Click on Start a Submission button to add this extra permission. Search for publish_actions, manage_pages and publish_pages and check their checkboxes. Click on Add 3 Items button to continue.


Please give it a try and see how it goes
·
Friday, 30 June 2017 16:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

After a bunch of google research, my understanding is that
- Once submitted for review, facebook reviewer will test with a provided test user.
- So test user must be able to simulate how the app works.
- And even on development mode, test user will work with app if test user is created properly with extra permissions such as publish_actions, manage_pages and publish_pages (which I already have done as seen on the screenshot of test user token in my first post).

In addition, in order to submit for review, it is required to
- upload video screencast walkthrough to show how it works, including "How the post looks on the person's Facebook timeline after posting"

Actually, if I don't know how the outcome will be, I cannot add explanation for review.
That's why I asked for help before submitting for review.


By the way, what should I do with those error messages mentioned in my prior post?
Did you modify anything? There was no such errors before.


Thanks,
rikao
·
Friday, 30 June 2017 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Maybe you can try it with your existing Facebook account(app creator) and posted it to it profile page. As it will mimics those process of sharing for your current apps.


By the way, what should I do with those error messages mentioned in my prior post?
Did you modify anything? There was no such errors before.

It is required for your to revoke that access again and see how it goes.

Please advice.
·
Friday, 30 June 2017 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

After I updated EasyBlog from 5.1.8 to 5.1.9, Facebook autoposting started to work with test users, even before submitting for review.
I think the bug was fixed on v5.1.9.
Thanks, I was finally able to capture screencast video and finished submitting for review (step 7).

However, from QuickPost, autoposting still does not work.
Will you please check?

Thanks,
rikao
·
Tuesday, 11 July 2017 20:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You shouldn't be able to auto post using other user unless creator of the apps until your review have been approved by Facebook. Maybe you can try using creator of the app itself and auto post your Quick post post, as it should works as i cant replicate this on my end, and it is auto posted correctly.

Please give it a try and see how it goes.
·
Wednesday, 12 July 2017 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

I tried Quickpost as a creator of the app using my own real facebook account, but it doesn't work for me....
Normal post works, but Quickpost does not work.

I've updated site info just in case you need.

Thanks,
rikao
·
Wednesday, 12 July 2017 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It seems that i cant access to your site using given access credentials. And it would be best if you can provide me with your Facebook access for further check on this issues. Please advice.
·
Wednesday, 12 July 2017 12:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Sorry, I updated the site credentials.

Now "public_actions" was successfully approved by facebook.

But "manage_pages" and "publish_pages" were not approved. The reason is that the settings will only be accessible to the site administrator and not the general public.

Q1.
It seems that autopost does not allow frontend users other than administrator to publish post onto their own facebook pages.
Is this correct?

Q2.
After "public_actions" is approved, I tested QuickPost again as a real facebook user, but autoposting still didn't work.
(QuickPost didn't work neither for Twitter.)

Will you please check again?
(Fadhli Shabri is still added as a developer for our app.)


Thanks,
rikao
·
Wednesday, 12 July 2017 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It seems that autopost does not allow frontend users other than administrator to publish post onto their own facebook pages.
Is this correct?

Yes it is. Currently, that how it is.

By the way, it seems that you havent associated any access to the Facebook as you can see here. Please give it a try first see how it goes. You are required to revoked those Facebook access again for each user(author's facebook links) and see how it goes.
·
Wednesday, 12 July 2017 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Yes it is. Currently, that how it is.

OK, understood. But I hope it will support all authors other than administrator in the future.


By the way, it seems that you havent associated any access to the Facebook

Yes, because I noticed today that I don't need to sign in to Facebook in the backend if I'm not going to publish posts to my own timeline or facebook page. All I need is to allow frontend authors to publish posts into their own facebook timeline.

In fact, Facebook/Twitter autopost is working properly with current backend settings, when posted from normal composer.


By the way, will you please delete the screenshot of our backend?
It includes the app ID and secret.

Thanks,
rikao
·
Wednesday, 12 July 2017 21:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It seems that i can replicate this on my local if you didnt authenticate your Facebook under autoposting sections. I have created a ticket internally and this issues will be included on our next release version. Thanks for your understanding
·
Thursday, 13 July 2017 10:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Thanks for confirming the issue.
In my case, however, I recall that autopost from QuickPost didn't work even if I authenticated my facebook in the backend.
So I revoked it.

But since you said it would work if authenticated facebook in the backend, I tried to authenticate again today.
Then I faced an error when I clicked on "Sign in with Facebook.

Error: 1062 Duplicate entry '31' for key 'PRIMARY'

Will you please advise how to fix this?

Thanks,
rikao
·
Thursday, 13 July 2017 13:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You should be able to sign in now. Please give it a try and see how it goes.
·
Thursday, 13 July 2017 14:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Still cannot sign in.

Error: 1062 Duplicate entry '41' for key 'PRIMARY'


rikao
·
Thursday, 13 July 2017 14:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Can your try again and see how it goes.
·
Thursday, 13 July 2017 14:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thank you, I was able to sign in.
Now facebook is authenticated in the backend, but autopost from QuickPost still does not work.

When posted from QuickPost, it does not even appear in the backend > Auto Posting > Logs.

I'm wondering why...
Are we on the same version? (5.1.9)


rikao
·
Thursday, 13 July 2017 15:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

As on above reply, i can replicate it now. This fixes will be included on our next release version. Thanks for your understanding.
·
Thursday, 13 July 2017 15:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
Please note that Twitter autoposting from QuickPost also has the same issue.
(Never tried LinkedIn.)

P.S.
It would be great if fixed files are available so that I don't have to wait for the next version.

Thanks,
rikao
·
Thursday, 13 July 2017 20:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Noted. We will if we can provided you those fixes once it is fixed. Thanks for you understanding
·
Friday, 14 July 2017 09:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've updated to v5.1.10 and confirmed that AutoPosting to Facebook/Twitter from QuickPost works properly now.
Thank you!

rikao
·
Tuesday, 25 July 2017 21:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Hideto, glad that your issues are resolved now
·
Tuesday, 25 July 2017 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post