Reading list Switch to dark mode

    Guide for Social Media Auto Publish

    Updated 21 August 2023

    Magento 2 Social Media Auto Publish allows when admin adds a product to the backend, the product is automatically posted to all social media channels that are connected to its account.

    The Social Media accounts connected to the module are Facebook, Instagram, Twitter, LinkedIn, and Tumblr.

    Features

    • The module has five social media that are: Facebook, Instagram, Twitter, LinkedIn, and Tumblr.
    • The product will automatically add as a post to all the social media platforms.
    • It allows you to connect your Facebook Page ID with Instagram.
    • The admin can shorten the URL for the Instagram description.
    • Admin can set whether the post can be auto-published or not.
    • The admin can also use the action dropdown to post the selected product on social media.

    Install an Extension from Webkul Store

    #1 Download Module

    Firstly, you need to log in to Webkul Store, go to My Account>My Purchased Products section, verify and then download and extract the contents of this zip folder on the system.

    #2 Upload Folder

    Once the module zip is extracted, follow path src>app and then copy the app folder into the Adobe Commerce Cloud root directory on the server as shown below:

    M2-installation-1

    #3 Run Commands

    After uploading the module folder, you need to run the following commands in the Magento 2 root directory:

    Searching for an experienced
    Magento Company ?
    Find out More
    composer require tumblr/tumblr
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    php bin/magento indexer:reindex
    php bin/magento cache:flush

    Module Configuration of Magento 2 Social Media Auto Publish

    The admin will navigate through Stores>Configuration>Social Media Auto Publish to make a general configuration Magento 2 Social Media Auto Publish.

    Facebook Settings

    Firstly start with the configuration of Facebook and how the admin can enter the required details to connect with Facebook.

    magento234.webkul.com_m2461_pub_admin_admin_system_config_edit_section_wk_socialmedia_key_f950067a2600acf145ae23b4a4c0fad20d81b7abd291c5afab5fe95677c3492d_webkul-store

    Auto Publish post to my Facebook account: The admin can enable/disable the option for auto-publish posts to Facebook.

    App Id/App Secret: To get the app Id and App secret key you need to click on the link given below to App Id.

    After clicking on Link the admin will go to the page shown below and need to click Create App.

    developers.facebook.com_apps_-1

    Now, the admin needs to select the Other option and click on the Next button.

    developers.facebook.com_apps_creation_-1

    Then click on the Business option to proceed further and click on the Next button.

    image-15-1

    Here the admin need to enter an app name and click on Create app button.

    developers.facebook.com_apps_create_-1-1

    The admin needs to click on the Set up button for Facebook Login for Business.

    developers.facebook.com_apps_611378094080357_add_-1

    Now again the admin needs to Set up the App Events also and click on View Details of the App.

    developers.facebook.com_apps_646276894071927_dashboard_

    Here admin clicks on Setting>Basic and then find the App Id and App secret key for Facebook admin panel.

    Webkul-Login-Settings-Meta-for-Developers

    Now click on Facebook Login for Businees>Settings and enter the OAuth Redirect URLs and this will be your <WebSite URL>/admin/wksocialmedia/auth/fbCallback. and click on save changes.

    developers.facebook.com_apps_646276894071927_business-login_settings_

    Page ID: To get the Facebook page Id click the link below the input field of the page id.

    Now copy the asset_id from the URL of the page and enter it in the admin panel.

    Page Access Token: To generate a token, the admin needs to remove the Page Access Token and click on the Save Config button. Then click on the “Generate Token” button to add a token.

    Note: When using another credential after saving it, remove the previous token and then generate a new token.

    When the token is generated, the success message will show on the front-end. Then the admin needs to refresh the admin configuration and can check the token.

    Instagram Settings

    Now the admin needs to enter the required information for the Instagram setting.

    magento234.webkul.com_m2461_pub_admin_admin_system_config_edit_section_wk_socialmedia_key_62c52ad9365078fca21b228492f59c7400657b0cbde9192a176905937d3bf583_webkul-store

    Auto Publish post to my Instagram account: The admin can enable/disable the option for auto-publish posts to Facebook.

    App Id/App Secret: To get the app Id and App secret key you need to click on the link given below to App Id.

    After clicking on Link the admin will go to the page shown below and need to click Create App.

    developers.facebook.com_apps_-2

    Now the admin needs to select the Other option and click on the Next button.

    developers.facebook.com_apps_creation_-2

    Then select the business tab and click on the Next button to proceed further.

    image-15

    The admin needs to enter the app name and click on Create app button

    developers.facebook.com_apps_create_-1-2

    Then set up the Instagram Graph API, App Events and Facebook Login For Business.

    image-16

    Now again the admin needs to Set up the App Events also and click on View Details of the App.

    developers.facebook.com_apps_646276894071927_dashboard_-1

    Here admin clicks on Setting>Basic and then find the App Id and App secret key for Instagram admin panel.

    developers.facebook.com_apps_646276894071927_settings_basic_

    To enter the OAuth Redirect URLs and this will be your <WebSiteURL>/admin/wksocialmedia/auth/instaCallback.

    Facebook Page Id connected to Instagram: To connect your Facebook page to Instagram you need to log in to your both account.

    Once you log into your Instagram account, go to account settings. Here, click “Switch to professional account”.

    Edit-Profile-•-Instagram-1

    You have two options: Creator and Business. Select Business, pick a category (can be anything), and skip the step to add contact information.

    Set-up-your-professional-account-•-Instagram

    Next, on the Facebook side, go to your Facebook page’s settings. On the “Professional Dashboard,” select “Linked Accounts”.

    Webkul-Test-Facebook

    And then you will see a button to “Connect” from Instagram.

    Facebook

    This will show you a pop-up to enter Instagram credentials, and once you log in, you should see a success message.

    Facebook-2

    Use URL Shortener: The admin can select Yes/No to use the short URL for the Instagram description.

    Bitly Client ID/Bitly Access Token: If Use URL Shortener is yes, then click on the link and enter the credentials. 

    Now you can copy the client id and client secret and enter them in the backend panel

    The admin can generate a token by entering the password for Bitly.

    Bitly-Settings

    The OAuth Redirect URLs would be your <WebSiteURL>/admin/wksocialmedia/auth/instaCallback.

    Access Token: To generate a token the admin needs to remove the Access Token and click on the Save Config button. Then click on Generate Token button to add a Token.

    Linkedin Settings

    Now the admin needs to configure the LinkedIn settings and enter the required details as shown below:

    magento234.webkul.com_m2461_pub_admin_admin_system_config_edit_section_wk_socialmedia_key_f950067a2600acf145ae23b4a4c0fad20d81b7abd291c5afab5fe95677c3492d_webkul-store-3

    Auto Publish post to my LinkedIn account: The admin can enable/disable the option for auto-publish posts to Facebook.

    App Id/App Secret: To get the app Id and app secret key you need to click on the link given below to app Id.

    After clicking on Link the admin will go to the page shown below and need to click Create App.

    Apps-list-Developers-LinkedIn

    The admin should fill in the required details, like the app name, LinkedIn page, and app logo. Then click on the “Create App” button to proceed further.

    linkedIn

    On the products tab, the admin should click on the “Request access” button: Sign in with LinkedIn, and Share on LinkedIn

    www.linkedin.com_developers_apps_211241684_products_refreshKey0

    Now click on the Auth tab to find the Client ID and Client Secret key.

    To enter the OAuth Redirect URLs that will be your <WebSiteURL>/admin/wksocialmedia/auth/callback

    Authentication-App-detail-Developers-LinkedIn

    Access Token: To generate a token, the admin needs to remove the access token and click on the Save Config button. Then click on the “Generate Token” button to add a token.

    Tumblr Settings

    The admin needs to enter the required information for the configuration of the Tumblr setting.

    magento234.webkul.com_m2461_pub_admin_admin_system_config_edit_key_b76ec0e976b5112b534180ea175a416f61aab327c9491251bf3f93c04fae9769_section_wk_socialmedia_

    Auto Publish post to my Tumblr account: The admin can enable/disable the option for auto-publish posts to Facebook.

    Consumer Key/Consumer Secret: To get the consumer key and consumer secret key, you need to click on the link given below to the consumer key.

    After clicking on the link, the admin will go to the page shown below and need to click the “Register Application” button.

    www.tumblr.com_oauth_apps-1

    The admin needs to enter the required information related to your application and click on “Register”.

    For the default callback URL and Oauth2 Redirect URL, you need to enter your <WebSite URL>/admin/wksocialmedia/auth/tumblrCallback

    www.tumblr.com_oauth_register

    Here the admin will find the registered application and need to click the application to configure it with the admin panel.

    Now, the admin will find the consumer key and consumer secret key to enter into the admin panel.

    www.tumblr.com_oauth_apps-1-1

    Token/Secret Token: To generate a token, the admin needs to remove the token/secret token and click on the Save Config button. Then click on the “Generate Token” button to add a token.

    Twitter Settings

    Now, in the last step, the admin needs to fill in the Twitter details to configure.

    magento234.webkul.com_m2461_pub_admin_admin_system_config_edit_key_b76ec0e976b5112b534180ea175a416f61aab327c9491251bf3f93c04fae9769_section_wk_socialmedia_-1

    Auto Publish post to my Twitter account: The admin can enable/disable the option for auto-publish posts to Facebook.

    Client Id/Client Secret: To get the Client Id and Client secret key you need to click on the link given below to Client Id.

    After clicking on Link the admin will go to the Twitter developer page shown below and need to click Developer portal.

    developer.twitter.com_en

    Now the admin should click on “Projects & Apps” and then select your profile. Here you will get the app details.

    Then, on the Settings tab, you should click on the edit button on the user authentication settings.

    developer.twitter.com_en_portal_projects_1646106590615855105_apps_26914782_settings

    Here, you need to enter your app information. For the callback URL / Redirect URL you need to enter your <WebSite URL>/admin/wksocialmedia/auth/twitterCallback and click on save.

    developer.twitter.com_en_portal_projects_1646106590615855105_apps_26914782_auth-settings-1

    Now on the Keys and Tokens tab, the admin can copy the Client Id and copy the Client Secret key by clicking on the Regenerate button.

    developer.twitter.com_en_portal_projects_1646106590615855105_apps_26914782_keys

    Here, the admin can copy the Client secret to configure with the admin panel.

    Token: To generate a token, the admin needs to remove the token and click on the Save Config button. Then click on the “Generate Token” button to add a token.

    Product View Page

    When auto publish is enabled, then the admin can add a new product that will automatically be posted to all social media channels that are connected to its account.

    Products-Inventory-Catalog-Magento-Admin-1

    After filling in all the details of the product, the admin will click the “Save” button, and the product will post on all social media accounts like Facebook, Instagram, LinkedIn, Tumblr, and Twitter.

    magento234.webkul.com_m2461_pub_admin_catalog_product_new_set_4_type_simple_key_fb7cc0dd91beae37c52d78fbdf55183ce6a3d12d157bb34d458aba97a6d48bec_-1

    Here, you can see the product posted on the Facebook page connected with Instagram Id.

    business.facebook.com_latest_home_asset_id109657358750206business_id788057972889019webkul-store

    The product is published on Instagram with a shortener URL in the description.

    www.instagram.com_p_CsqW6z9u8EY_

    But if we select No to Shortner URL from the admin panel then the complete URL will add in the product description.

    www.instagram.com_p_CsqW6z9u8EY_-1

    The product is also published on LinkedIn, as shown below.

    www.linkedin.com_in_vikas-webkul-764b77265_recent-activity_all_

    The same product is posted on the Tumblr account as well.

    www.tumblr.com_blog_generouseaglecoffee

    The product is also posted on the admin Twitter account, as shown below:

    Product View Page:

    The admin can also select the products and post them on any social media account that is mentioned in the dropdown list. 

    Note: The same product cannot be posted twice on the same platform. The admin needs to select a different product for the same social media account.

    Products-Inventory-Catalog-Magento-Admin-1-1

    Support

    That is all about the Magento 2 Social Media Auto Publish. If you have any queries regarding the plugin, please contact us at Webkul Support System.

    You can also check out our complete Magento 2 extensions. Moreover, if you are looking to create a custom e-commerce website, it is a great idea to hire Magento developers who can help you build a powerful and scalable online store.

    Current Product Version – 4.0.0, 

    Supported Framework Version – Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

    Current Product Version - 4.0.0

    Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content