I'm having a problem using Facebook's OpenGraph. I'm attempting to implement timeline features into my application. However, when try changing my meta tags to change the tile of my object, the changes are not reflected. When I pass my url into the debugger tool facebook offers, it displays that my OG object is still using the old data, as opposed to the new data. However, the weird thing is the raw properties show my changes. How do I get facebook to update the OG object?
Another problem I'm having is that when I make changes to my actions, facebook isn't properly updating it. When I reopen the action, it's still referencing my old object titles. For example, if a title of one of my movie objects was "sci fi," and I reference "sci fi" in the action "see," it will still be referencing "sci fi" even if I try to change it to something else. I would save and it, but when I reopened the action the old settings where still there.
I was also wondering about dynamic generation of objects. For example, if I had an app that allowed people to list movies they've watched, could I dynamically generate the OG object so that users can have the "see a $movie" show up in their timeline no matter what movie it was? The reason I'm wondering is because right now I'm unsure whether or not I need to keep the page with the meta tags up after I use it once.
Sorry for the word blocks and if my questions seem basic to you. I'm pretty much a newbie at this.
Putting your URL into the Object Debugger should force Facebook to crawl it. Do you have your og:url pointing to the old URL?
I don't understand your second question. Is Facebook not crawling your page? It should recrawl every 7 days or you can force it with the scrape API.
For your third question, yes, you can do that. Just make a different URL for each movie with a different og:url. For good SEO you want to do example.com/movie/1234/The-Matrix.
http://developers.facebook.com/tools/debug
Try this and put the link of the page you want facebook to clear its cache for.
Related
I am creating a customised Facebook share button. The idea is upon clicking on the Facebook share button, it will pick up the meta tags on the page and prefill the share information with a title, description and image that have been curated.
What URL should I be using for the button?
There is https://www.facebook.com/dialog/share
and https://www.facebook.com/sharer/sharer.php
I heard the latter has been deprecated? And you can append a whole bunch of information to the URL as well?
I can't quite figure that out.
sharer.php is not deprecated. It was, for some months, but you can definitely use it. The benefit of using sharer.php is that you don´t need to create an App. It´s the easiest way to implement sharing.
Keep in mind that sharer.php ONLY takes the URL as parameter, everything else will get loaded from the Open Graph tags.
For example:
https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ffacebook.com%2F
I´m having problems with my cutenews and Facebook "share" buttons, but I´m working with "og:" metas to solve it.
In the mean time, another problem that I have (and I won´t solve it with Open Graph Protocol) it´s that some images are always fetched by Facebook and the most important images (the articles images) too but there isn´t the first choices.
So, if Facebook fetches 7 images, the first 3 options to people are always the banners images and not the articles images.
Is there any way to mark the images that I don´t want to be fetched by Google?
Sorry my bad english.
If you've already implemented the proper Open Graph tags (og:image, etc), then the next step is to determine if your implementation of those tags is valid.
Facebook provides an Open Graph debugger for exactly this purpose. Provide it with the URL in question, and it will tell you what to do next.
I want to share an image from a website on Facebook and pass some attributes (e.g. a description) to the status update, all done by clicking on a link.
A few months ago this worked fine using the sharer.php but by now this script just accepts a URL as parameter and scrapes the target site for Open Graph meta tags. This new approach isn't very helpfull if you just want to share elements on a page instead of the whole page.
Yeah, I could create an app and use the feed dialog to achieve my goal. But I honestly don't want to walk through the tedious app validation process just to share an image with some additional info!
So, does anyone know of a way to avoid this app hassle? Perhaps some undocumented parameters for the new implementation of the sharer.php?
There's no need for app validation - as #CBroe correctly stated! So the feed dialog IS an adequate solution!
Background: I assumed an app needs validation to go live. But I just didn't set up my app properly to make it available to every Facebook user.
See the comments to gloat over my stupidity. ;)
I have been reading about using Open Graph (OG) meta tags to improve the way facebook works with your website. I have read two tutorials that say to create an application and use the application ID. But I am not developing an application, all I have is a business page... Can I just the page ID?
Can anybody also point out any good, simple resources around the using OG in my website?
Thanks
The sharer.php method (which is deprecated) allows you to post without an application. The feed/post method appears to require an app_id, though it's possible that there's some way around that. On the bright side, there's nothing complex about creating an application, so, if that's what you must do, I'd say just do it :)
Here is an example of how it works *with an app using the feed/post method (you'll need to click the "Post to feed" link at the top (yes I know it doesn't look like a link!).
and Here is the same exact example only using Sharer (notice that this time it's pointing at a slightly different url (drawImageForFB2.php instead of drawImageForFB4.php).
I use a php to render the tags based on the vidId that I collect but that's neither here nor there... you could just as easily have this as a static HTML page.
The innards of the OG tag are just about identical and the app_id tag in the OG is entirely optional as it pertains to the second example).
Oh, and addthis does it using the dialog api which looks like this
https://www.facebook.com/dialog/feed?redirect_uri=http://s7.addthis.com/static/postshare/c00.html&app_id=140586622674265&link=http://support.addthis.com/customer/portal/articles/381222-optimize-facebook-sharing#.UQ8bBJM9KQk.facebook&name=Optimize%20Facebook%20Sharing&description=
The Documentation from facebook isn't understandable, atleast for me.
I have never worked before with facebook and had a basic requirement of putting a like button on Product pages.
So yesterday, I added the OpenGraph meta tags and like button to my Product pages as stated in this documentation, https://developers.facebook.com/docs/opengraph/. I also created an app, as the document stated that it has extended the basic meta data to add a required field to connect your webpage with Facebook: fb:app_id.
The like button has been set but i have few queries which are as following :-
For some pages, the like button doesn't read the og tags. Rather than publishing the whole thing in a story manner by reading og tags, it just shows a link. During googling, I read it happens because of facebook caching and since, I shared the link on facebook before putting the meta-tags, this is happening. So, Is there any way that I can direct facebook to reset all the caching for my pages or scraping that it has done earlier.
Though I have created the App, I actually have no idea what to do with it. Why is it needed and what matters it can help me with.
I tested one of my URLs here: Facebook Linter but it shows some error and stuff which i can't understand. Below is the image. Please tell if I have done anything wrong and why it's showing these errors
Documentation for OpenGraph on Facebook containing outdated information about pre-defined types, see OpenGraph Types. You probably need to define your custom Object Type "Product" in for your Application/Site using Developer Application in Open Graph settings.
You may want to read Documentation for OpenGraph beta too.
Update:
There is a similar question about exactly this og:type: Opengraph meta tag og:type set to “product” errors (like button & URL linter/debug)