I have followed all the necessary steps in Facebook to generate my App ID, App Secret and Facebook Page token. But i am unable to save the Data Set instance in PRPC. Getting following error.
AppId/AppSecret is incorrect
Also the "Facebook Page URL" is not automatically populated (ideally it should if i have provided valid details in Facebook tab of the Data Set). Anyway, i provided my FB Page url manually. Still i am unable to save the Data set instance.
Is there any specific settings need to be changed in my FB Page? also in PRPC server side do i need to change in the configuration to access Facebook?
Hi, Aritra. I'm a Pega product manager working with Facebook and Twitter for the Customer Service application, so my team and I also use the Facebook data set. I'm not very familiar with the older Pega platform pieces, but more recent versions of Pega include a button in the Data Set rule that can test the Facebook connection there, which would be very convenient in this case.
The error message you're getting is pretty clear that it is having a problem with the app ID, App secret, or perhaps the page token. So if you haven't already done this, you might want to validate these directly from a browser by creating the URL defined in the middle of the PDN article How to post updates to Facebook from Pega Platform (which you already know about), in the section called "Obtain an authentication token."
When you paste this URL into a browser, you should see the access token info (that is in the screen shot in the PDN article). If you don't, then there is something wrong with the App ID and/or App Secret. If you do see the access token, then that would point to a problem in Pega.
If you use IBM WebSphere Application Server or Oracle WebLogic Server to run the Pega 7 Platform, you need to configure the Signer and SSL Certificate settings. Without this configuration, the Facebook data set does not work.
I got the resolution now with this problem. Now i have a different problem where the FB posts are not getting fetched by my NLPProcess Data flow. This time everything is correct in Pega side, but may be i am missing something in Facebook side. Either on the Facebook App settings, or Facebook Page options ir something else. I commented in that same article (https://pdn.pega.com/analyzing-text-based-content-posted-facebook-pega-… ) asking for some help. Please reply to that if possible.
I followed all the steps and got successful connectivity in Facebook Data set. But NLPProcess returning no data always. Whereas i have posted multiple posts in my Facebook page. please let me know what could be the possible reasons for this?
Here are the steps i did it in Facebook.
1. I have a Facebook ID (ABC). Using that created a new app (XYZ). I git the App ID and App Secret from there. Same is mentioned in FacebookData Data Set.
2. I have created a Facebook Page with same name (ABC) and marked the category as "App Page".
3. In the advanced settings of the App linked the same Facebook page their (not sure if this was necessary or not)
5. Require App Secret = "no", Require 2-Factor Reauthorization ="no", Allow API Access to App Settings="yes"
6. Tools-->"Graph API Explorer" Selected application "Graph Application Explorer". in 'Get Token' , under 'Page Access Token' selected page 'ABC'. Copied the access token and pasted in Pega FacebookData Data Set "Facebook Page Token" field.
Please tell me what else need to be done from my side.
In Step 6 (above) if i select application as "ABC" and page as "ABC", the generated Access Token is not getting saved in Pega FB Data set. Its showing an error like below in the Rule form.
** Received Facebook error response of type OAuthException: (#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review. (code 10, subcode null)
"message": "Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.",
Thank you for posting your query on PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s at the top of our Pega Support Community homepage. Make sure to provide your complete use case along with environment details such as the Pega version you are using. Once created, please reply back here with the URL of the new post.