Question4Replies1856Views SeshaHarikrishnaK Member since 2014 26 posts LTI Posted: 4 years agoLast activity: 4 years 5 months ago Closed Solved Problem with Facebook Connection with PegaHi All,I am trying Facebook integration from Pega.Corresponding article : https://pdn.pega.com/how-post-updates-facebook-prpcThe 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="EAAIoXqmDfZCIBAPkxjaMpz7A0lXpppJNZBUjq69avr2ZBd0XRx4ZAd6AOxcIu333K7ozCNynoYnPaOAZBPZCCUfVJpb12E2GcK0tcxBvGIwM6zJcAz5cbI9HaZAQ7kzwB6AcMZCqi5bVGvg5b5zR01SZBDmr85924GIIZD&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 2accounts1) 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 popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post 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 agoHabeebBaig PEGA replied to SeshaHarikrishnaKHi 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 PRPCThanks,Habeeb Baig Posted: 4 years agoUpdated: 4 years agoSeshaHarikrishnaK LTI replied to HabeebBaigyes indeed. Posted: 4 years agoSeshaHarikrishnaK LTI replied to SeshaHarikrishnaKWhen 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 agoSeshaHarikrishnaK LTI replied to SeshaHarikrishnaKHi 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: pegaStep 2 : login through facebook and create a page eg : pegatutStep 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 generationok.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'sSpoiler : 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 as1. manage_pages2. publish_actions3. publish_pagesFor 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 messageFacebook_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/11233333now here facebook id is 11233333.Step 12 : once done your post will be published or posted onto a page.Hope it helps.