Force-Connect Facebook Page to Social Feed
We currently use Page Search for finding a Facebook Page to display in our Social Feed. Sometimes the search results don't display the correct Page or, if there are many pages with the same name, it's hard to find the correct one in the dropdown. Non-unique Page URLs can also be an issue.
The following instructions walk you through how you can force connect a specific Facebook Page to a POWr Social Feed.
Step 1: Find the correct Page
Get the URL from the User, or find the page and confirm with the User that you have the right page.
Step 2: Get the Page ID
Go to https://findmyfbid.in/ and enter the URL of the Facebook Page you are trying to connect. Copy the ID it returns.
(if the Facebook page id cannot be found with the above link, please use this page as well: https://lookup-id.com/)
For example, the ID of our Facebook Page at https://www.facebook.com/powrplugins is 455636541214915
**Note: In case you are unable to locate the FB page ID using the link above. You can also locate it by viewing the page source.
FIX: BROKEN_ATTACHMENT (original: https://help.powr.io/hc/article_attachments/1500002672621/mceclip1.png)**
Step 3: Modify followingData
Open the Social Feed app where you wish to force-connect a Page. Open the browser Console.
Define a variable in which you will be storing the Page details, like this:
d = APP_MODEL.attributes.followingData
Then, access the object and manipulate its data:
d[0]['following'] = "455636541214915"; // (that's the page ID from above) d[0]['pageName'] = 'POWr - Easy Website Apps' ;
Important: The "0" in the square brackets indicates the position in the array. If a user has multiple pages connected, make sure you are replacing the correct one. For example, if it's the third page in the list, use d[2] instead of d[0] (count starts at 0).
Then, set the followingData equal to the data you just defined:
APP_MODEL.attributes.followingData = d;
FIX: BROKEN_ATTACHMENT (original: https://help.powr.io/hc/article_attachments/360054197433/mceclip0.png)
Step 4: Publish changes
Publish the app and refresh the page to check if everything worked and it's now showing the correct posts.