Topic-icon Facebook open graph Invalid parameter error

Active Subscriptions:

None
9 years 5 months ago #48458 by natkol
I still get Invalid parameter while trying to get upload gallery function to sync to facebook. After may submissions, I was finally able to get my app approved by facebook but still cant get them to sync. Any help would be much appreciated as I have never got this to successfully work. Im only testing with upload gallery at the moment but would like to use other functions if I can get this to work.
The topic has been locked.
Support Specialist
9 years 5 months ago #48480 by alzander
Invalid parameter usually means that you're trying to submit an action from JFBConnect that wasn't created in your Facebook app.

Can you tell me (or even better, take pictures) of the Facebook App Open Graph configuration area for the action and the JFBConnect configuration area for the action? That will help us understand how you configured things.

Then, let us know a URL of an image that was uploaded. We'll gladly investigate further and do what we can to help get you going.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48496 by natkol
Here are screenshots from FB app setup and JFB config screens. I had to zoom out on the FB ones to get all the actions so sorry for that. On the log image the 3rd line down tht says invalid parameter links to: www.hanoverminihawks.org/nathan-kolet/photos/album?albumid=100

File Attachment:


File Attachment:


File Attachment:


File Attachment:


File Attachment:


File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
9 years 5 months ago #48548 by alzander
Thanks for the pictures, they definitely help. A few minor things I notice which may or may not be related to the problem, but worth checking:
In the Facebook Developers area, go to the Open Graph section of your App:
* Click on Action Types and then click into your "Upload" action
* Scroll to the bottom under "Advanced options" and you'll see the Graph API URL like:
graph.facebook.com/me/hanoverminihawks:upload
Please make sure that the "upload" is lower-case

* Click on "Object Types" and click into your "Gallery" object
* Scroll to the bottom under "Advanced options" and you'll see the Open Graph Type like:
gallery
Please make sure that "gallery" is lower-case

Then, go to the JFBConnect Open Graph configuration area and double check that your "Action" and "Object" settings are both lower case as well (as pictured above).

With that, your objects and actions look absolutely correct. I'm unsure why in some of the activity log area the albumid= blank.. Is there anything different in how you're uploading in those cases, when the parameter is blank vs the times when it wasn't? For instance, are you creating a new album and immediately uploading to it, or are you uploading from a unique area of your site compared to the ones that have the albumid=95 parameter?

Hopefully the above helps you track things down a little more, but definitely keep us posted.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48549 by natkol
Everything is lowercase in both FB and JFBConnect.

These are all the settings I have tried in the head of my template. Now I have so many Im not sure what should actually be there anymore if any. When I remove all this, I get an F on Social Debug, when its all there I get an A. When I remove the line <meta property="og:type" content="hanoverminihawks:gallery"> The error message in the activity log changes to (#3502) Object at URL www.hanoverminihawks.org/photos/album?albumid has og:type of 'article'. The property 'gallery' requires an object of og:type 'hanoverminihawks:gallery'. Please let me know what should stay and what should go for the meta info. I know im hitting facebook as well because when I turn on the use token I the error changes to (#15) This method must be called with an app access_token. Hopefully I am narrowing this down.

<meta property="og:title" content="Official Hanover Mini Hawks On-Line Community" /> <!-- post/page title -->
<meta property="og:description" content="Official Hanover Mini Hawks On-Line Community" /> <!-- post/page description -->
<meta property="og:image" content="www.hanoverminihawks.org/images/fbhmhlogo.png" />
<meta property="og:url" content="www.hanoverminihawks.org" />
<meta property="og:description" content="Official Hanover Mini Hawks On-Line Community" /> <!-- post/page description -->
<meta property="og:site_name" content="Official Hanover Mini Hawks On-Line Community" /> <!-- Site Name -->
<meta property="fb:admins" content="1684467625" />
<meta property="og:type" content="hanoverminihawks:gallery">
{SCOpenGraph url=http://www.hanoverminihawks.org}
{SCOpenGraph image=http://www.hanoverminihawks.org/images/fbhmhlogo.png}
The topic has been locked.
Support Specialist
9 years 5 months ago #48550 by alzander
You should not be adding *any* og: tags to your header section. JFBConnect will add them, and the addition of them is based on your object and action settings. If you're adding your own tags in addition to what JFBConnect is automatically trying to add, that can definitely be a part of the problem you're running into.

If you need to add custom Open Graph tags to any page, you should not directly add the HTML, you should use our calls to make sure that JFBConnect properly prioritizes your custom tags and removes any redundant ones. To add your own tags, use the following syntax:
{SCOpenGraph description=My Description for this Page}

Again though, you shouldn't need to add any og:type or other object/action tags on your page as JFBConnect will be adding those automatically based on your configuration.

Alex
The topic has been locked.
Support Specialist
9 years 5 months ago #48551 by mel

I know im hitting facebook as well because when I turn on the use token I the error changes to (#15) This method must be called with an app access_token


Regarding this error, please edit your Action on Facebook and verify that the 'Requires App Token to Publish' setting is set to No.
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48552 by natkol
That is turned off. I only enabled it as a test to see if the error would change. JomSocial has its own og tags in its head.php file that I dont know if are interfering.

self::addOpengraph('og:type', $type);
self::addOpengraph('og:url', JURI::getInstance()->toString());
self::addOpengraph('og:title', $title);
/* Generate description if not provided */
if ($description === null) {
/* Use Joomla! global description if menu description is not provided */
if (!isset($menuDescription) || $menuDescription == '') {
$description = JFactory::getConfig()->get('MetaDesc');
} else {
$description = $menuDescription;
}
}
if (trim($description) != '') {
self::addOpengraph('og:description', trim(strip_tags($description)));
}
if ($images !== null) {
foreach ($images as $image) {
self::addOpengraph('og:image', str_replace(JUri::root(true),'',JUri::root()). $image, true);
}
}
switch ($type) {
/**
* @link developers.facebook.com/docs/reference/o.../object-type/website
*/
case 'website':
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=frontpage'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=groups&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=photos&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=videos&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=events&task=display'), true);
self::addOpengraph('og:site_name', JFactory::getConfig()->get('sitename'));
break;
/**
* @link developers.facebook.com/docs/reference/o...object-type/profile/
*/
case 'profile':
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=frontpage'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=groups&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=photos&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=videos&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=events&task=display'), true);
self::addOpengraph('og:site_name', JFactory::getConfig()->get('sitename'));
break;
}
$document = JFactory::getDocument();
$document->setTitle($title);
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48553 by natkol
There has to be some kind of issue with JomSocial 3.2.1.5

I just did a clean install of Joomla, JomSocial and latest JFBConnect. Tuned it, and still get the same error with beez template and no customization what so ever. I wanted to make sure nothing I customized was the issue.

dev.hanoverminihawks.org

Thanks,
The topic has been locked.
Support Specialist
9 years 5 months ago #48554 by mel
I am setting these actions/objects up on my test site to try to reproduce. Can you tell me the steps on the front-end that you are doing to upload (since I'm sure there's lots of different possibilities). For example, can you answer Alex's question below so that I know I'm doing the same things you are?

With that, your objects and actions look absolutely correct. I'm unsure why in some of the activity log area the albumid= blank.. Is there anything different in how you're uploading in those cases, when the parameter is blank vs the times when it wasn't? For instance, are you creating a new album and immediately uploading to it, or are you uploading from a unique area of your site compared to the ones that have the albumid=95 parameter?


Thanks
-Melissa
The topic has been locked.