<commit_before>.. include:: feedback_widget.rst

=========================================
Sharing
=========================================

Introduction
------------

Socialize provides a complete set of helper functions to make sharing content
in your app as easy as possible.

UI Elements
-------------------------

Share Dialog
~~~~~~~~~~~~

The simplest way to allow users to share an entity (your content) is via the share dialog

.. literalinclude:: snippets/sharing.m
	:start-after: begin-show-share-dialog-snippet
	:end-before: end-show-share-dialog-snippet

.. image:: images/share_dialog.png

Custom Share Dialog Behavior
~~~~~~~~~~~~

If you'd like, you can override some of Socialize's share functionality

.. literalinclude:: snippets/sharing.m
	:start-after: begin-show-share-dialog-with-options-snippet
	:end-before: end-show-share-dialog-with-options-snippet

Refer to :ref:`custom_wall_post` and :ref:`show_sms` for more details on customizing Facebook and SMS functionality

Manually instantiating the share dialog controller
~~~~~~~~~~~~

If you need to, you can directly instantiate the share dialog and manage its lifecycle on your own.

.. literalinclude:: snippets/sharing.m
	:start-after: begin-manual-show-share-dialog-snippet
	:end-before: end-manual-show-share-dialog-snippet
<commit_msg>Add doc suggestion<commit_after>.. include:: feedback_widget.rst

=========================================
Sharing
=========================================

Introduction
------------

Socialize provides a complete set of helper functions to make sharing content
in your app as easy as possible.

UI Elements
-------------------------

Share Dialog
~~~~~~~~~~~~

The simplest way to allow users to share an entity (your content) is via the
share dialog.  Note that if you need to set meta information on the entity, you
must do so with a separate call to [SZEntityUtils addEntity:success:failure:]

.. literalinclude:: snippets/sharing.m
	:start-after: begin-show-share-dialog-snippet
	:end-before: end-show-share-dialog-snippet

.. image:: images/share_dialog.png

Custom Share Dialog Behavior
~~~~~~~~~~~~

If you'd like, you can override some of Socialize's share functionality

.. literalinclude:: snippets/sharing.m
	:start-after: begin-show-share-dialog-with-options-snippet
	:end-before: end-show-share-dialog-with-options-snippet

Refer to :ref:`custom_wall_post` and :ref:`show_sms` for more details on customizing Facebook and SMS functionality

Manually instantiating the share dialog controller
~~~~~~~~~~~~

If you need to, you can directly instantiate the share dialog and manage its lifecycle on your own.

.. literalinclude:: snippets/sharing.m
	:start-after: begin-manual-show-share-dialog-snippet
	:end-before: end-manual-show-share-dialog-snippet

{'fraction_non_alphanumeric': 0.18283045977011494, 'fraction_numerical': 0.0, 'mean_word_length': 4.397286821705427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7543448', 'n_tokens_mistral': 782, 'n_tokens_neox': 735, 'n_words': 261}