Skip to content

You can use WhatsApp’s Share to Status iOS API to integrate Status with your apps and allow your users to share content directly to their Status.

License

Notifications You must be signed in to change notification settings

fbsamples/whatsapp_status_api_ios

Repository files navigation

Share to Status

iOS Sample App

This is an iOS sample app with integrations for sharing to WhatsApp Status. After running the app, you will be able to choose from the supported configurations and share the chosen media to WhatsApp Status.

Demo

Required software

In order to run the sample app you will need to install some required software, as follows:

  • XCode

Running the project

  1. Open the sample app project on XCode.
  2. Enable dev mode on your iOS Phone*.
  3. Connect your phone to your Mac using a USB cable.
  4. Your phone should appear on the devices tab in XCode.
  5. Select your phone and click on the play button. The app will be built and executed in you mobile device.

Enabling dev mode on your iOS Phone

  • To run the sample app on your mobile device you need to create an "Apple Development" certificate.
    1. Click on the project root from the left menu and select the "Signing & Capabilities" tab.
    2. Click in the Team dropdown and select "Add an Account".
    3. Click on the ➕ icon to add an account.
    4. Sign in with your Apple ID.
    5. Click on "Manage Certificates…" button to make sure it has a certificate.
    6. If no certificate is listed, click on the ➕ icon and select "Apple Development" to create the development certificate.
    7. Once you link your Apple account and it has a developer certificate, go back to "Signing & Capabilities". In the "Team" field, select your personal team.
  • Now you need to trust your computer and development team app on your mobile device.
    1. Unlock your phone and connect to your laptop using the cable. A message will display on your phone:
    2. Trust apps from your Apple Development team. Open Setting ➡️ General ➡️ VPN & Device Management. Under "Developer App", select in the Item of the team account you just linked to the project.

Android Sample App

If you want to see the Android integration, you can access this project.

License

Share to Status iOS is Meta Platform Policy licensed, as found in the LICENSE file.

About

You can use WhatsApp’s Share to Status iOS API to integrate Status with your apps and allow your users to share content directly to their Status.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages