javascriptangularionic-frameworksocialshare

Ionic/Angular/JS Create a click event to automate process


I am making an app that will preform several functions at once, the functions are sending an SMS and posting a message to Facebook and twitter

however, I have hit a wall, I can not find any information on how to automatically post to Facebook and Twitter and send an SMS.

I do not want the user to wait for the SMS messenger APP to open then tap send, then wait for Facebook to open then tap send and then wait for twitter to open and then tap send.

I want to send an SMS and Post to socials all at once. is there any solution or advice for me and where to look.

I am using the IONIC shareSocials Plugin.


Solution

  • The only way would be via API integrations (but still..)

    Remark: This would require the whole package..

    Below are the related API sections.

    Twitter: https://developer.twitter.com/en/docs/tweets/post-and-engage/overview

    Facebook (only allows publishing to pages, not sure if there is still a way to post something to a user's feed): https://developers.facebook.com/docs/graph-api/using-graph-api/#publishing

    If you want SMS to be automated as well, you could look at SMS gateway API's, but these are not free (for large amounts) and are sending from a "general" number, not the user's number.

    Example: https://gatewayapi.com/