opengraph

Posting a Custom Story to Facebook Open Graph

核能气质少年 提交于 2019-12-08 13:12:50
问题 I'm trying to post a custom story to a proof of concept Facebook app, consisting of an object type "badge" and an action type "earn." When I "get code" for this in the Facebook Open Graph Types interface, the Graph Explorer example successfully posts the story to my timeline. However, the one parameter ("badge") is a URL reference to OG samples. How can I post something directly, not as a reference to OG samples? Using the C# SDK, I'm currently trying this: var client = new FacebookClient();

OG. More than 1 video on page

佐手、 提交于 2019-12-08 11:39:20
问题 How can I add OG markup for more than 1 video, placed on a page? I need an example please. I had added markup for 1 video but have no idea how to do it for 2 or more. 回答1: Just put video tags with necessary params as many times as you need. Example. Markup like this <meta property="og:video" content="http://example.com/movie.swf" /> <meta property="og:video:secure_url" content="https://secure.example.com/movie.swf" /> <meta property="og:video:type" content="application/x-shockwave-flash" />

How to read Open Graph and meta tags from a webpage with a url

自古美人都是妖i 提交于 2019-12-08 09:50:16
问题 I want my website to be able to pull up information about a web page when the user pastes a link into the post box, similar to Facebook. I was wondering how sites like Google, Reddit and Facebook are able to retrieve thumbnails, titles and descriptions with just a URL. Anyone know how they do this? 回答1: The basic algorithm is rather simple: fetch the page, analyze content, extract text&images&title&whatever, build preview. However there are a lot of difficulties for particular use cases.

How to display an aggregation of an object that is connected to another object?

大憨熊 提交于 2019-12-08 05:37:54
问题 I've set up these 2 objects : Book Author A book has an author field. I have one action : Read I have 2 aggregations : Recently read books Favorite authors The Favorite authors aggregation is set up to show author objects on the read action. I posted a story to my Timeline: Felipe read "some book" , but it only shows the Recently read books aggregation and not the Favorite authors . How am I suppose to set up the aggregation for Favorite authors ? 回答1: If the aggregation is setup correctly

How to parse og meta tags using httparty for rails 3

有些话、适合烂在心里 提交于 2019-12-08 05:33:49
问题 I am trying to parse og meta tags using the HTTParty gem using this code: link = http://www.usatoday.com/story/gameon/2013/01/08/nfl-jets-tony-sparano-fired/1817037/ # link = http://news.yahoo.com/chicago-lottery-winners-death-ruled-homicide-181627271.html resp = HTTParty.get(link) ret_body = resp.body # title og_title = ret_body.match(/\<[Mm][Ee][Tt][Aa] property\=\"og:title\"\ content\=\"(.*?)\"\/\>/) og_title = og_title[1].to_s The problem is that it worked on some sites (yahoo!) but not

Embed Video Not Displayed

六月ゝ 毕业季﹏ 提交于 2019-12-08 04:37:48
问题 I'm trying to embed a flash audio player, I've setup the OG meta tags so they look pretty much like those of SoundCloud or YouTube. The issues I'm having are: The player is never rendered when using the Feed Dialog (as in the og:image links to the shared page, and doesn't swap in the player as it does for YouTube and SoundCloud). The player is rendered when just pasting the URL into the 'status' box on Facebook; however, sometimes it only renderes if 'secure browsing' is disabled. My guess as

Implementing Facebook wishlist tutorial Application Does Not Own Action Type Error

。_饼干妹妹 提交于 2019-12-08 03:26:18
问题 I am working through the Facebook Wishlist app for Android. When I attempt to add my custom object to the Facebook graph the API returns the following error: { "error: { "type": "OAuthExeption", "message":"(#100) Application does not own 230752723668296 action type" } } I haven't been able to find any specific documentation on this particular error. Are there any Facebook developers out there who may be able to help me interpret this. I should also mention that I already have a working

How do I prevent my opengraph action stories from being aggregated in the news feed?

徘徊边缘 提交于 2019-12-07 21:07:53
问题 I have an OpenGraph action posting working. It appears as I want in the timeline, but only appears as an aggregation in the newsfeed, without any of the story attachments. How can I make it appear the same way in the newsfeed as it appears in the timeline? For reference, here are screen shots of the timeline version (which is what I want), and the feed version (which is aggregated, against my wishes): Timeline version of the posting: timeline story posting http://a.yfrog.com/img580/6074/7ohf

Multiple Facebook app_id on same url

心不动则不痛 提交于 2019-12-07 12:17:40
问题 Is it possible to have two Facebook App Ids on the same page? We wish to do this as we are adding a new Facebook app to a network of sites but want to avoid having to update each individual site's app. If we can have multiple apps we will be able to maintain a single app across all sites, while retaining the functionality of the legacy apps on the sites. eg adding two open graph tags for app_id (Facebook linter seems to pick up both but I'm not sure if this will create other problems

Critical Error Linting URL: An internal error occurred while linting the URL

自古美人都是妖i 提交于 2019-12-07 05:15:44
问题 I tried to create a post (using a blogger URL) in the Facebook Power Editor. Result: Error creating posts. Please retry later. You can also go to your Page and post from there. (OAuthException) (#1500) The url you supplied is invalid Then tried to install Facebook's Open Graph tags into Blogger to see of that would fix the problem. To test the OG tags I used Open Graph Object Debugger. Here are the results: Critical Errors That Must Be Fixed, Error Linting URL, An internal error occurred