Topic-icon Invalid parameter when adding JS image

Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #55160 by ducky
I have setup the JS add photo feature as per tutorial. But it does not work. Getting Invalid parameter error.

Not sure if related, but also getting 'Error
Facebook API Error: Invalid appsecret_proof provided in the API argument' under channels

Please advise
Colin
Last edit: 10 years 8 months ago by ducky.
The topic has been locked.
Support Specialist
10 years 8 months ago #55162 by mel
Looking at your page, it seems as if JomSocial is adding og:image tags that are not the full path. For instance, at www.ehcanadatravel.com/community-photos/display.html, I see the following which is incorrect.
<meta property="og:image" content="/images/photos/454/169/thumb_b330e7604c47be6c9065ad90.jpg"/>

We've seen this before and it has helped to comment out the calls that JomSocial is making to add Open Graph tags. Can you try going into /components/com_community/helpers/head.php and comment out any lines of code that start with "self::addOpengraph". Then try to re-scan the page on the Facebook Open Graph Debugger

A lot of times this will fix the issue, assuming your actions and objects are set up correctly. If you're still seeing the error after doing this, then it would be easiest for you to make us a developer on your FB app and give us FTP credentials so that we can quickly figure out the issue.

-Melissa
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #55165 by ducky
HI Melissa!

Thank you for the quick response. I have looked at the js head.php and see a bunch of lines starting with that code. so I am hesitant to comment them all out, as i don't want to break js.

I have added you as a pb developer. Now is pending...

sending you the ftp access now as well
Last edit: 10 years 8 months ago by ducky.
The topic has been locked.
Support Specialist
10 years 8 months ago #55166 by mel
I didn't see a notification about developer role, so I sent a PM with my Facebook user ID to add. Could you also send admin credentials to the backend?
-Melissa
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #55171 by ducky
Hi Mel,

I have set you up as a developer, and set you as super admin in the backend of our site.
login is melissa.sourcecoast
i assume you have the password?

Many thanks!
Colin
The topic has been locked.
Support Specialist
10 years 7 months ago #55185 by mel
Yes, I have all the credentials I need.

It turns out that the problem is the Open Graph Object in your JFBConnect backend was configured incorrectly. The object type in JFBConnect was 'gallery'. However, in your Facebook object, it was 'gallery_image'. Therefore, I updated the object in JFBConnect to match Facebook and was able to successfully able to get the action to post to my timeline. You can see the successful activity in the JFBConnect > Open Graph > Activity Logs.

This was the only change that I made, so please test and let me know if you run into any further problems.

-Melissa
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55223 by ducky
Hi Melissa,

Looking good now.
Thank You!

I am still getting the error, Facebook API Error: Invalid appsecret_proof provided in the API argument under channels.
it says The selected user has not granted the "manage_pages" permission. Please have them login on the front-end of the site and accept the correct permission.
but when i login i see no such options
Any ideas?

Is there any way to put an option in their js profile to associate their account to facebook.
Most of our members register through normal means, so it is not posting to their facebook wall.
Last edit: 10 years 7 months ago by ducky.
The topic has been locked.
Support Specialist
10 years 7 months ago #55230 by mel

I am still getting the error, Facebook API Error: Invalid appsecret_proof provided in the API argument under channels.
it says The selected user has not granted the "manage_pages" permission. Please have them login on the front-end of the site and accept the correct permission.
but when i login i see no such options
Any ideas?

I have received this error before when switching the applications in the JFBConnect backend. If you have a user mapping to Facebook, it applies for a specific application. Then when an application is changed, the token isn't right. To fix this:
1. Find the user mapping of the channel owner in JFBConnect > User Map and delete it. This will not delete the Joomla user.
2. Log in on the front-end with the Joomla user that persists from #1.
3. Re-connect this user to your appropriate Facebook user using the SCLogin module or the JFBConnect account settings menu item.
4. Edit the channel and reselect the Facebook user as the channel owner.
This should hopefully clear up the problem, but let me know if it does not.

Is there any way to put an option in their js profile to associate their account to facebook.
Most of our members register through normal means, so it is not posting to their facebook wall.

When logged in via Joomla, there are a couple of different methods to connect an existing Joomla account to Facebook:
1. You can manually add the JFBCLogin easy-tag to the appropriate JomSocial view. You can try {JFBCLogin show_reconnect=true text=Connect with} which will show the buttons to reconnect to social networks when logged in. This would be the first approach I would try.
2. SCLogin module - there is an option to show reconnect buttons.
3. JFBConnect account settings menu
Let us know if you need further help with this.

-Melissa
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55289 by ducky

3. Re-connect this user to your appropriate Facebook user using the SCLogin module or the JFBConnect account settings menu item.


I have done this and reconnected the account by using the import from the JFB menu (map user). The error still persists.

2.
If I want to add it to the JS profile page, what view page would i edit?
I looked in views/profile/view.html.php but could not see where I should add it?
Last edit: 10 years 7 months ago by ducky.
The topic has been locked.
Support Specialist
10 years 7 months ago #55292 by alzander
1) Can you go to the Facebook Developer Area and into the Settings -> Advanced section and make sure the "Require App Secret" setting is off? It sounds like you turned that on, which should work, but for some reason is causing you the problem you're running into.

2) I honestly don't have a clue. That is best a question for the JomSocial developers as they know all the views of their extension much better than we do. Once you get the right page, if you have issues adding our code, just let us know and we can help you debug things from there.

Thanks,
Alex
The topic has been locked.