Facebook releases native share dialog for iOS developers, allows Open Graph sharing without login and permissions
Facebook today announced the availability of a new native share dialog for iOS, which will give developers an easy way to incorporate Facebook sharing — including Open Graph actions — in their apps.
The mobile share dialog is a standard tool that enables users to post something back to Facebook. Similar to the Like button, the share dialog can be implemented with a small amount of code across any app and it works even if users haven’t logged into the app using Facebook. The dialog includes support for location tagging, friend tagging, custom privacy settings, deep linking and more.
Previously, mobile developers would have had to program their own sharing mechanism with these features or use the old “feed dialog” or iOS 6 Share Sheet, which are more limited in functionality and can require up to three extra steps for users.
Unlike Share Sheet, the native share dialog supports Open Graph publishing, as seen in the “read a book” example to the right. This is important because until now, developers had to ask users to log into their app using Facebook and allow various publishing permissions, which some users did not like.
Now, because the share dialog opens up the main Facebook app to complete the action, users don’t need to log into a third-party app with Facebook in order to share back via the Open Graph. As long as users have the Facebook app and are logged into that, they can easily publish to Facebook from any iOS app that uses the share dialog. This could greatly increase the amount of structured sharing through Open Graph verbs and objects.
Facebook first announced the native share dialog, along with other new mobile platform features, in April. However, it was only available in limited beta for iOS until today’s wide release. It is still in development for Android. The company says the share dialog should be used by default in all mobile apps that want to enable users to share something to the social network, even if the apps don’t have deeper Facebook integration, such as login or Open Graph.
Facebook offers a detailed comparison of all of a developer’s options for sharing back to Facebook — including the new share dialog, iOS Share Sheet, web-based feed dialog and Graph API – here. Technical documentation on the native share dialog is available here.