Tuesday, August 3, 2021
1 change · master
New functionality added to Odoo
The Social app now supports connecting Instagram business accounts through Facebook, letting users monitor Instagram activity and create or schedule posts from Odoo. The update also improves social media handling reliability, demo data, and comment display behavior across supported networks.
Original PR description
PURPOSE This commit introduces the Instagram media implementation for the social app. SPECIFICATIONS The implementation uses the (Facebook) Instagram REST API to connect to Instagram accounts and…
PURPOSE This commit introduces the Instagram media implementation for the social app. SPECIFICATIONS The implementation uses the (Facebook) Instagram REST API to connect to Instagram accounts and allow users to monitor their account and view their posts, as well as add or schedule new ones. Users will have to connect their Instagram account and give the appropriate permissions (through their Facebook accounts). The Instagram social media implementation is a bit special because it goes through the Facebook API to fetch information (as Facebook owns Instagram). This also means the code implementation shares a lot of similarities with the Facebook one. That also means we can only add Instagram accounts through Facebook. Posting on Instagram is made a bit more difficult since it adds various conditions: - There has to be exactly one image associated to the post - The image has to be in the JPEG format - The image ratio needs to be between 4:5 and 1.91:1 More information can be found on the social.post#_get_instagram_image_error() method docstring. We took this opportunity to make a cleanup of the current social modules code. Details about every changes can be found in underlying commits. LINKS Task-2083592 UPG PR odoo/upgrade#784 IAP PR odoo/iap-apps#164