Facebook Pixel ViewContent Issue - facebook

having issues implementing Facebook Pixel ViewContent event into a website.
Looked everywhere online for answers but nothing is coming up and I have found websites using the same Event, and they use it the same way I do.
I'm basically getting the following error within my Facebook Business account:
Missing content_type parameter from "ViewContent" in James Glen Car Sales's Pixel
However the following code is on the website:
fbq('track', 'ViewContent', {
content_type: 'vehicle',
content_ids: ['1431445']
});
which is what all guides recommend.
Here a link to the page which is having the issue:
https://www.jamesglen.co.uk/used-audi-a4-airdrie-lanarkshire-1431445

I looked at your website and it appears that you are using content_type wrong.
You can only use "product" or "product_group" in the content_type field.
You can read more information here:
https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/product-audiences/v2.8/#content_type

Related

Facebook Open Graph started working wrongly when Liking the page

So I have a blog: www.elnacional.com.uy
Each article has it's open graph meta tags, so when someone Likes the article, a title, picture and description are posted on facebook.
But suddenly it started working wrongly, now when u like the page u just get the Link to be posted on facebook, not the description nor the title nor the picture.
And I have no idea what's going on because nothing was changed.
Please use the debugger to troubleshoot your problems.
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.elnacional.com.uy%2Fjugadores%2Fperalta-hablo-de-lo-que-se-viene-en-el-apertura%2F
This shows the following error:
Object at URL 'http://www.elnacional.com.uy/jugadores/peralta-hablo-de-lo-que-se-viene-en-el-apertura/' is invalid because the configured 'og:type' of 'news' is invalid.
The "news" type for "og:type" isn't a valid type according to the documentation here.
This is why it doesn't know what to do with your title, image and description.
I suggest using the type article as it is documented as
article - Use article for any URL that represents transient content -
such as a news article, blog post, photo, video, etc.
The meta tags should be in the head, maybe that's why it isn't working :)

Metadata Fails for Blog Post Like Buttons

I'm integrating a Like button in the individual blog posts on my company's website ( www.atlas-games.com , blog by CLASSIC Blogger at http://blog.atlas-games.com ... can't use a widget). Unfortunately the metadata isn't passing through, so in Facebook it looks like:
Michelle Nephew likes a link.
Atlas Games: Charting New Realms of Imagination <--website's name, not post title
The item links work correctly on "link" and "Atlas Games ..." directing to the individual post, but it's using generic text rather than the individual post's title, the site name I specified for Facebook, and the image.
Object Debugger comes up with Inferred Property errors for URL, Title, and Image, though I specify them in the header of my page. For some reason Facebook just isn't finding the metadata, seems like. See the report here:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fblog.atlas-games.com%2F
I'm having trouble posting my code here ... View Source, though, and you'll see the Meta Property tags in the header and the iframe in the post's footer code (commented out right now).
This is the third time over the course of several months that I've spent hours trying to get this to work, with no luck, so it's not a temporary issue. Any suggestions?
It seems like the structure of the HTML might be the issue as it could be stopping Facebook finding the Open Graph tags.
Fixing these validation errors might allow the tags to be parsed:
http://validator.w3.org/check?uri=http%3A%2F%2Fblog.atlas-games.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
Also there are some template variables in the OG tags which aren't being replaced with values:
<meta property="og:title" content="<$BlogItemTitle$>" />
I have the same problem on my blog! And I can't even insert html for the facebook like button directly from facebook developers, into my blog, my blogger blog tells me that the html is erred. I think it has something to do with blogger being a google blog and google now having google+. I noticed all my problems began when google+ came out, I think google is possibly screwing up the facebook like buttons on google sites, to gain monopoly through "share on google+" .

Iphone Posting on wall with FBConnect

I am using the latest facebook sdk.
Everything works fine even the post on wall feature.
Thing is that the post to wall dialog contains minimal information. Just a textbox and a small label reading "... via app-name".
I have used the sample code snippet which provides things like 'caption' and 'description' but these are NOT shown in the post to wall dialog.
I have seen other apps with captions, descriptions and even a large image attached to the post.
How can I show these objects (caption, description, image etc..) using the facebook sdk ?
Thanks
I don't use the Facebook SDK so I just send POST requests with the necessary values. Similar to this:
Posting on Facebook Tutorial
There's another tutorial on the same blog that does use the SDK:
Posting with the Facebook SDK

How do I post to Facebook a group of Links?

I know how to use Facebook Open Graph to create a wall post on any chosen member, however, I don't know how some applications post something like this:
The 'description' parameter contains 3 different urls. At first I thought they were posting HTML into the 'description' but it turned out Facebook blocks them in the first place.
Is there some hidden undocumented features of the Facebook API they are using? May be the old API had this but the new Open Graph doesnt?
The facebook app:
http://www.facebook.com/apps/application.php?id=20678178440
Facebook Post entity:
http://developers.facebook.com/docs/reference/api/post/
Are you just looking to use HTML? The "default" Wall is plain text. As far as I know you need to install an app to add HTML to your FB wall. Check out the app Advanced Wall to get HTML functionality.

Facebook App - Share link is missing while posting to user's feed

I'm sharing a link on a user's feed - everything seems to be valid, but there's no Share link (Share button)... What is it that I'm doing wrong?
try {
$su = $facebook->api(
"/{$uid}/feed",
"post",
array(
"access_token"=> $access_token,
"message"=> "Message",
"link" => "http://url",
"picture"=> "http://url"
);
} catch (FacebookApiException $e) {
print_r($e);
}
Thanks in advance,
Doori Bar
very strange. I have the same problem. I have developed a Facebook App and I used a function to post on the user wall. But on the user Wall there is no "Share" link. It's only possible to like or comment it.
If I use this other technique, a dialog showing to post (on wall) OR to "send as a message instead" is displayed. (I was looking for this feature as well).
And the good thing is that the resulting post to the wall can be liked, commented AND Shared.
This is the javascript code that can help you to obtain this functionality:
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;;url>" onclick="return fbs_click()" target="_blank">Share on Facebook</a>
Taken from http://askville.amazon.com/add-Share-Facebook-button-webpage/AnswerViewer.do?requestId=1539369
Hope this helps. It helped me at least ;)
You can create your own "Share" link using Actions described in the graph API here:
http://developers.facebook.com/docs/reference/api/post/
for example as json: {"name":"Share", "link":"http:\/\/www.facebook.com\/share.php?u=http%3A%2F%2Fvisibli.com"}
Note: the url param u must be url encoded.
I'm fairly confident this is a bug. To encourage Facebook to fix this issue, please "vote" for this bug by adding your app as a "repro" at the following link:
http://developers.facebook.com/bugs/154484061346461?browse=search_4f903d2ea60569f93022163
UPDATE:
Facebook marked the previous bug report as "Fixed" but it is NOT fixed. Please vote for the new bug:
http://developers.facebook.com/bugs/252491528185120