This week, we are launching two Open Graph tags to help people follow their favorite media publishers and journalists. We are also adding several new requirements to make it easier for us to review your app and Open Graph submissions. Finally, we've included a few updates to using the Facebook Android SDK with ProGuard and the Graph API for events page posts.
As mentioned in our documentation, media publishers should include Open Graph tags in their article's HTML to generate better previews of their content when shared on Facebook. Today we're introducing updates to two tags:
article:publisher
lets a publisher link an article to their own Facebook page. When the article is shared in News Feed, a "like" button is displayed so people can like the publisher page.<meta property="article:publisher" content="https://www.facebook.com/cnn" />
article:author
lets a publisher link an article to the Facebook profile of the author. When the article is shared in News Feed, a "follow" button is displayed so people can follow the author. The author needs to have Follow activated on his or her profile for this button to appear.<meta property="article:author" content="https://www.facebook.com/fareedzakaria" />
The "Follow" and "Like" buttons will only appear for people who haven't already followed the author or liked the publisher page.
We are introducing several new requirements to make it easier for us to review your app and Open Graph submissions:
If you use ProGuard with your Android app, please add this snippet to your app's proguard-project.txt configuration file:
-keep class com.facebook.** { *; }
-keepattributes Signature
These flags are used to preserve generic signatures and type information used for reflection. Both flags are necessary for the Facebook SDK to function correctly in an Android app that uses ProGuard.
You now have the ability to suppress the creation of a News Feed story when you create a new event for a Facebook page. See our Graph API page posts documentation for more information.