By Andy on Wednesday, 25 February 2015
Posted in Technical Issues
Replies 18
Likes 0
Views 0.9K
Votes 0
On uploading a photo to the main activity stream I'm getting 'Unexpected Token' show up.... everything seems to work ok, but that message is scaring my users!

I'm using Chrome browser. I see a similar issue reported on the forums (and solved) but that involved a 3rd party component that I don't use so this must be something else?

Thanks if you can help me fix this!
Hi Andy,

I am sorry for the delayed reply as we here is weekend.
I am glad to hear your issue is now fixed. I believe you doesn't need to provide us with the FTP access since this issue on your site is now fixed.
This is a bug which we have fixed internally and will be included in the next releases. I am really sorry for the inconvenience caused.

Thanks and have a nice day.
·
Saturday, 07 March 2015 10:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy.

I tried login to your site but the access is incorrect : http://screen.stackideas.com/2015-02-25_1014.png
·
Wednesday, 25 February 2015 10:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Izzan. Sorry about that... I think I gave the wrong password.... updated now on the original thread.
·
Wednesday, 25 February 2015 20:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andy,

I am sorry, I can't seem to replicate this issue on your site. Am I missing anything here? By the way, can you provide us with the user credentials who hit this issue so that we can assist you on this issue.

Please advise.
·
Wednesday, 25 February 2015 22:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd.... I've further tested and found out it's fine from a Super Admin account, but the error shows when it's done from a User account.... This sounds like what you were thinking too... including here the front-end user login details.... hopefully with these you can replicate the error.... it's a small JPG file I'm trying to add to the stream, and I'm using Google Chrome browser.
·
Wednesday, 25 February 2015 23:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andy,

I am sorry for the late reply.
Thanks for providing us with the registered user and now I can replicate this issue.

I have inspected your site and I believe the issue is coming from Facebook. The reason why you're hitting this issue is because the token for Facebook is already expired. I have temporarily disable this setting in your EasySocial: http://screencast.com/t/JggHhCMreQ to prevent EasySocial to send to Facebook for Timeline updating. You can enable this back after your Facebook App Submission have approved.

To fix this, you need to send submit item for approval in your Facebook Apps. You can follow these steps:
1. Go to your Facebook Apps and edit it. Navigate yourself to Status & Review section from the left sidebar and Click the Start a Submission button.


2. Select publish_actions permission and click Add Items button.


3. Complete the required items listed.


4. Complete "App Details" the required items listed.


5. After you done the "App detail", then go back to "Status & Review" and click "Add Notes" button.


6. Provide the required information and click Save button.


7. Provide step-by-step how to access Facebook login


8. Upload the screen-shots regarding how you will use Facebook in your app.


9. Tick that checkbox and Click Submit for Review button at the bottom-right corner.


10. Accept the terms and conditions and click Submit button.


11. You will get the notification - “On average, submissions will be reviewed within 7 business days.” Click OK.

12. You will get App permission approval notification.


Hope this helps and please update us back on this issue.
Thanks.
·
Thursday, 26 February 2015 12:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow! Now that's first class support!

Thank you for identifying this and all that guidance... I'll get to this later today and report back on how it goes....
·
Thursday, 26 February 2015 23:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Andy Please let us know how this goes!
·
Friday, 27 February 2015 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
I haven't got around to updating the Facebook side of things as per above advice, BUT reporting that I'm still getting this error if I try and just add some text to the stream on a user profile page.... so if you deactivated the Facebook setting for me AND this is still happening... sounds like another issue?

If you are able to troubleshoot this, I'm including a profile URL here where you can try a test message. Earlier site access details on this thread should allow further investigation.

Thanks
·
Friday, 06 March 2015 10:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andy,

Here I have attached to you a file, can you try download it and put it here: .../components/com_easysocial/controllers/story.php . Please update us back whether this issue is fixed or not. Also, can you please provide us back with FTP access so that we can assist you further on this issue.

Please advise.
·
Friday, 06 March 2015 10:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

Yes things seem to work after using that story.php file.

Do you need my FTP for something else, or was that just if there were ongoing issues?

Also this is a change that will go into the core build, or something unique to my site I'd need to reapply after each EasySocial update?

Thanks.
·
Friday, 06 March 2015 20:27
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm just going through your advice to authorise the Facebook app.... on Screenshot 2 you've got to select "Publish Actions".... Is this right for the EasySocial Facebook integration? I've gone through all the steps ok and the only thing stopping me from submitting for approval is a message that says "I haven't tested any Publish_Actions recently"... I think I have because with the admin on my Facebook App I have gone to my website and logged in via Facebook importing a profile pic ok.... Any advice on what I can do to let Facebook know that I have tested this?!?!!?!?

Thanks!
·
Friday, 20 March 2015 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andy,

I am sorry for the late reply.
I have done some research and I suspected that you get this issue because you didn't make request with this permission before. To make the post request, you can use Graph API Explorer(post with API me/feed which need two params: message, access_token) with your application.
To do this, please follow these steps:
1. On your Facebook developer page, select Graph API Explorer on the menu.
2. On the Graph API Explorer page, select your app want to review by clicking on Graph API Explorer you will get list of your app.
3. Select your app and click on get access Token, check on permissions you need.
4. Change method to post and past "me/feed" to textbox - click add a field and add two field "message", "access_token" ("message" is your message and "access_token" is token on textbox access_token)

For further reads, please go to this page. Please give this a try and see if this resolves your issue. I am sorry as you're our first customer reporting this issue and we'll get back to you once we have absolute fix.

Please update us back on this.
·
Friday, 20 March 2015 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your time on this... Can you just explain step 4... "and past "me/feed" to textbox" a bit more..... I did Step 1 to 3 ok and all of Step 4 (I think) apart from that bit that I didn't understand.... Also I assumed when I add those 2 fields I put in values as well like 'test' for the message and the access token that it generates on that page too?
·
Friday, 20 March 2015 19:46
·
0 Likes
·
0 Votes
·
0 Comments
·
...also adding to above I've just had a quick reply back from Facebook support which says:

"You don't appear to be using publish_actions to publish content to Facebook on behalf of the user (based on your description and your screenshots). How are you using publish_actions?."
·
Friday, 20 March 2015 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

In order for you to publish posts to Facebook on behalf of users, you must submit your app to Facebook with the "publis_actions" on your Facebook application.
·
Saturday, 21 March 2015 00:49
·
0 Likes
·
0 Votes
·
0 Comments
·
OK thanks Mark.. just to clarify 'posts' are entries they make on the stream? I just need to know how to test this as Facebook seems clever enough to not approve the app until it's been proven in action....
·
Saturday, 21 March 2015 03:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Yes, that's correct. When you post something on the stream using the story form, it get's pushed to Facebook (provided that the app was setup with the appropriate permissions, otherwise Facebook wouldn't allow you to publish the item)
·
Saturday, 21 March 2015 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post