• Sean Parker
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 9
    Replies
 

I want to integrate Facebook and Salesforce.

I followed the instructions on this page exactly: https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook (https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook" rel="nofollow)

However when I click on my Sites Url (step 5 on the instructions) I am redirected to the Facebook page and I get this message:

'The following permissions have not been approved for use and are not being shown to people using your app: read_stream and publish_actions. Submit them for review or learn more' - the tutorial does not mention needing permissions.

If I click ok I it processes and then takes me to:

https://mySFsite/apex/FacebookSamplePage?code=xxx

and then displays the Authorization required VF page.

I have checked all the permissions on the Public Access Setting on Sites

If I try to preview Active Site Page as admin I get this error message:

{
   "error": {
    "message": "Invalid redirect_uri: Given URL is not allowed by the Application   
    configuration.",
      "type": "OAuthException",
      "code": 191  
   }
}

I searched this error on google and everyone says that it is because the Sites URL and the URL in the Facebook app are different. I have tried many different permutations but to no avail.

If the URL of my site and the URL in FB app are the same I only get this error message when I preview as admin.

I only this error message by clicking on the Sites Url when the URL in Facebook is actually different. Otherwise I just get the Authorization required VF page.

Some help would be greatly appreciated :)

Hi there

Salesforce does not allow you to create PDF attachments in batch job.

This is work around to that.
https://developer.salesforce.com/forums/?id=906F0000000AlGoIAK

It works!

But As of Summer 15, Salesforce have implemented a critical update "PageReference getContent() and getContentAsPDF() Methods Treated as Callouts". Once enabled, you may get the rather uninformative error "(304497466)|FATAL_ERROR|System.CalloutException: Callout loop not allowed".

And so I have the problem described in this blog: http://codrspace.com/gwickman/callout-loop-not-allowed-error-when-using-getcontent-and-getcontentaspdf/

Can someone please help me get around this error or help with another way to create PDF attachments for emails in a batch job?

Thank you very much


 
 

I want to integrate Facebook and Salesforce.

I followed the instructions on this page exactly: https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook (https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook" rel="nofollow)

However when I click on my Sites Url (step 5 on the instructions) I am redirected to the Facebook page and I get this message:

'The following permissions have not been approved for use and are not being shown to people using your app: read_stream and publish_actions. Submit them for review or learn more' - the tutorial does not mention needing permissions.

If I click ok I it processes and then takes me to:

https://mySFsite/apex/FacebookSamplePage?code=xxx

and then displays the Authorization required VF page.

I have checked all the permissions on the Public Access Setting on Sites

If I try to preview Active Site Page as admin I get this error message:

{
   "error": {
    "message": "Invalid redirect_uri: Given URL is not allowed by the Application   
    configuration.",
      "type": "OAuthException",
      "code": 191  
   }
}

I searched this error on google and everyone says that it is because the Sites URL and the URL in the Facebook app are different. I have tried many different permutations but to no avail.

If the URL of my site and the URL in FB app are the same I only get this error message when I preview as admin.

I only this error message by clicking on the Sites Url when the URL in Facebook is actually different. Otherwise I just get the Authorization required VF page.

Some help would be greatly appreciated :)