Question 4 Replies 1905 Views × Close popover Sesha Harikrishna Kanduri (SeshaHarikrishnaK) LTI Senior Software Engineer LTI IN View Profile Send Message SeshaHarikrishnaK Member since 2014 26 posts LTI Posted: May 5, 2016 Last activity: May 11, 2016 Posted: 5 May 2016 10:38 EDT Last activity: 11 May 2016 2:43 EDT Closed Solved Problem with Facebook Connection with Pega Hi All, I am trying Facebook integration from Pega. Corresponding article : https://pdn.pega.com/how-post-updates-facebook-prpc The steps i followed were below: 1. Created a New App named as pegasample. 2. Acquired the pre-requisite such as APP_ID,CODE_ID,CODE,ACCESS_token etc., "https://graph.facebook.com/oauth/access_token?client_id=607336989425650&redirect_uri=https://apps.facebook.com/pegasample&client_secret=d3ce061423e4c9b5a87ce8c2724f273b&code=AQAYCMSZV1m-MvlzPMO-nbHY3VKZ3ZaHxlus3X2KVr1OjMq8OwpA6tiLh95nyIkP24p5Iqnk0V_0qVrYT4QzNKv1hDSWta6_EEjVDBT82UL646i3vPtPKo16EycrLniOEaey5T-31xPhGNINA1gojXd31jNROWvNpb6gwuAdJyI4P2FBpT6KtTHlaMWiRHyqsBzwSYoemFW_W-2iVzTodSPULxF_XxLHj4qCzwTXa7E5K0--qdIGcbHvRJTJepN35xJWvxDUkySftLTNoV73_bWgBoHWKVEqdXck8bNdioU1kXZv8dI5E_fGfHnjR8R-LeJlOPxkuu9cOAqFXUg9cymf#_=_" access_token="EAAIoXqmDfZCIBAPkxjaMpz7A0lXpppJNZBUjq69avr2ZBd0XRx4ZAd6AOxcIu333K7ozCNynoYnPaOAZBPZCCUfVJpb12E2GcK0tcxBvGIwM6zJcA z5cbI9HaZAQ7kzwB6AcMZCqi5bVGvg5b5zR01SZBDmr85924GIIZD&expires=5182979". 3. Created the flow and sections, activity etc., 4. ran the flow. now the tracer is not throwing any error.but, the Facebook app which is there is throwing this exception. 5. The article showed that the author has created 2accounts 1) PegaUSG (may be admin of the Page and app ) 2) Hans Prummel ( his personal id) the PegaUSG has created the PageTab https://developers.facebook.com/docs/pages/tabs#adding Adding an tab to a page i guess. but, i can't find that option anywhere. i think PageTabs are the way to do? if there is other way please suggest it. I understand that A new Page should be created and somehow an app should be linked with it.but how? Message was edited by: Vidyaranjan Av | Included Category Data Integration × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 4 years ago Posted: 9 May 2016 7:45 EDT × Close popover Habeeb Baig (HabeebBaig) PEGA Technical Solutions Engineer Pegasystems Inc. IN View Profile Send Message HabeebBaig PEGA replied to SeshaHarikrishnaK Hi Sesha, Did the test connectivity on connect HTTP rule went successful for you? you can cross verify the steps you followed with this article Re: Problem in Facebook Integration with Pega PRPC Thanks, Habeeb Baig Posted: 4 years ago Updated: 4 years ago Posted: 10 May 2016 10:03 EDT Updated: 10 May 2016 10:05 EDT × Close popover Sesha Harikrishna Kanduri (SeshaHarikrishnaK) LTI Senior Software Engineer LTI IN View Profile Send Message SeshaHarikrishnaK LTI replied to HabeebBaig yes indeed. Posted: 4 years ago Posted: 10 May 2016 10:56 EDT × Close popover Sesha Harikrishna Kanduri (SeshaHarikrishnaK) LTI Senior Software Engineer LTI IN View Profile Send Message SeshaHarikrishnaK LTI replied to SeshaHarikrishnaK When i run it what must the facebook_id be username with which we log in? if so we didn't configure the password for it right? Accepted Solution Posted: 4 years ago Posted: 11 May 2016 2:43 EDT × Close popover Sesha Harikrishna Kanduri (SeshaHarikrishnaK) LTI Senior Software Engineer LTI IN View Profile Send Message SeshaHarikrishnaK LTI replied to SeshaHarikrishnaK Hi All, If any one is working on this: pleas follow the below steps and it works for sure: Step 1 : you create an app for eg: pega Step 2 : login through facebook and create a page eg : pegatut Step 3 : in order to link your page to an app. you need to go to Developers link in facebook (generally present in the right side below ads). Step 4 : Go to Tools and support-> Graph API-> there you need to select an application from the drop down. Step 5 : Below it you have 3 ways of access token generation ok.so why do you need an access token? ( access token is an unique id which is generated and will figure out on which page or group or app you need to work) Step 6: instead of the tradition approach where you do it with URL's Spoiler : do you know that the access token obtained can only stay for a specific amount of time ? (eg : 24 hrs) in order to increment the duration import the API of facebook onto eclipse or some IDE and run extended_access_token then you can get It till 2 months. Step 7: as you have obtained the token. create an activity property-set. add the access token obtained on to a property and as well as the callback. Step 8: create a Connect-HTTP with get method and refer all the properties on the request tab. Step 9: inorder to map them go to the same activity which is created earlier and then add a Connect-HTTP. with an endpoint utl of publish. Note : though you have unit tested your activity and Connect-HTTP individually and are running fine. Past News : from July 2015 onwards the Publish is not free even to test unless till published, so for that go to Developers->App->App review and select options such as 1. manage_pages 2. publish_actions 3. publish_pages For this you need to add a video and then await for the reply which happens from 3 to 7 working days. Step 10 : once approved as the Connect-HTTP is all mapped to take values from clipboard. Step 11: add a section with Facebook_ID property if you followed the link which got you here. and also a message Facebook_ID is the Page onto which you need to post. if timeline of an user then his user id slug. what is a slug ?(the numericals in the URL) like say facebook.com/pages/11233333 now here facebook id is 11233333. Step 12 : once done your post will be published or posted onto a page. Hope it helps.