About

[aboutme username=”patpatterson”]

18 Replies to “About”

  1. Hi Jake – re ‘questionable’ – yeah, I ought to go update my ‘About’ page. I’ll put that on my list for today.

    As for PHP 5.1.6… Unfortunately, the default behavior of PHP’s SOAP implementation is (in my opinion, but not the PHP folks) broken – see http://eirikhoem.wordpress.com/2008/03/13/array-problems-with-soap-and-php-updated/

    A configuration option ‘SOAP_SINGLE_ELEMENT_ARRAYS’ was introduced in PHP 5.2. Since PHP 5.1.x is no longer supported (indeed, the end-of-life for PHP 5.2.x was announced last December – http://www.php.net/archive/2010.php#id2010-12-16-1) I think your best option is to move to PHP 5.3.

    Sorry I can’t give you a better fix!

  2. Wow! A whole new site. hahah

    Thanks for the reply. I appreciate it. It looks like a server upgrade will be need to be queued shortly. Once that is done I may be back.

    (Sorry about the ‘comment’ on your about page. I thought it was a contact page. I will try to comment more appropriately in the future.)

  3. I spent a few minutes setting up a new theme and better text on the ‘About’ page 🙂 No problem leaving comments here – it all gets to me in the end 😉

  4. Hi Pat, sorry for writing right here, but I didn’t find a better communication way.
    On this page http://blog.sforce.com/sforce/2011/03/calling-the-rest-api-from-javascript-in-visualforce-pages.html a proxy for JS API calls is described, with a wrapper lib to use it.
    But it doesn’t solve my problem, because I don’t host my JS app as a VisualForce page. Hence, a call to the proxy would still be cross-domain.

    The question is, why not just support CORS and set an HTTP header:
    Access-Control-Allow-Origin: *
    Then cross-domain API calls from JS would work from any domain, in all modern browsers.

  5. I’m working on my first facebook app, and I’m following your example here:
    http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook,_Version_3.0

    to get some ideas and also to have my “first time” with FB environment and facebook toolkit 3 and fb apps in general.

    Using your code I’m receiving this kind of error:

    “sObject type ‘Facebook_Favorite__c’ is not supported. If you are attempting to use a custom object, be sure to append the ‘__c’ after the entity name”

    and i cannot find any solution. Also with the second part of the code there is something that the platform doesn’t like.

    Can u please help me ?

    Thanks a lot and I’m sorry to bother you!

    Kind regards, Giuseppe C.

    1. Hi Giuseppe! It sounds like you’ve created a custom object called ‘Facebook Favorite’, or something similar, but you’re not referring to it correctly in your code.

      Go to the object detail page for your custom object (Setup | App Setup | Create | Objects | {Your object name}) and check the API Name.

  6. Hey Pat,

    Really interesting stuff you have been working on. I am working with your http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook,_Version_3.0 and I believe version 3.3. There is a step in 3.2 where you put in a EncryptionSettings__c.Key. I haven’t been able to find too much documentation about what I should put in there or if it is made up or retrieved? Any help would be greatly appreciated!

    Thanks,
    Brandon

  7. I just worked through your “Getting Started with the Force.com REST API” tutorial using JAVA (https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API#) and wanted to suggest some updates to the page. There are some errata in this page. The link to the JSON Java libraries is broken, but could be updated to https://code.google.com/p/org-json-java/downloads/list. Also, in the file DemoREST.java, the getString() function on lines 61 and 161 cause errors since they are run on non-strings; the function should be changed to optString(). Also, for people (like me) who want to learn REST but don’t have a Java development environment setup, it would be very helpful if the article linked to a complete tutorial about how to setup that development environment in the “Setting up for the Sample Application” section. A very straightforward tutorial is here: http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html. For novices it might also help if in the setup steps it said that the JSON and Apache libraries need to be “imported into” the project (instead of “added to”) and that the REST API sample code needs to be put in the project in with the project source files. Thanks!

  8. Hi Andrew – thanks for the feedback – I’ll revisit that article (It’s nearly 4 years old now!) and apply your suggestions.

  9. Hi Pat,

    Have you had a chance to look at the ConnectedAppPlugin class for COnnected Apps?

    Do you think it could be used to restrict API calls to custom services within Salesforce and prevent API calls to the full REST API within the same ConnectedApp? Ive been trying to find a way to do this but have been unsuccessful so far.

    Any suggestion you have is appreciated.

    Thanks!

    1. I’m not sure this is going to help you – as far as I can see, it just runs at authentication time. I’ll see if I can find any info on restricting an app to just Apex REST methods.

  10. Hi Pat, we are a new SalesForce company migrating from MSCRM. I found, “Single Sign-On with Force.com and Microsoft Active Directory Federation Services” that you co-authored with Rhys Goodwin and had a question. The article states, “You need a Microsoft Windows Server 2008 R2 Enterprise or Datacenter edition.” Will the ADFS integration with SF not work on a 2012R2 Standard server? What are the differences if we do deploy with a 2012R2Std? I appreciate your work you do, and making it publicly available to us lowly peons!

    link to the article: https://developer.salesforce.com/page/Single_Sign-On_with_Force.com_and_Microsoft_Active_Directory_Federation_Services

    1. Hi Rich – the only reason I didn’t mention Windows Server 2012 is that the article was written in 2011! Should work just fine with 2012R2. I’ve actually left Salesforce now, so the #1 best person to ask about this is Chuck Mortimore – @cmort on Twitter or cmortimore salesforce com (you can figure out the punctuation!). Good luck!

  11. Shot in the dark that you’re still monitoring this – I’ve been following your article on continuation using js remoting and had the same issue mentioned here: https://developer.salesforce.com/blogs/developer-relations/2015/02/apex-continuations-asynchronous-callouts-visualforce-pages.html#comment-2692483035 – specifically, the static method used to invoke continuation doesn’t have a controller so I can’t use one for Test.invokeContinuationMethod. Do you know of a solution to this?

    Appreciate any help,

    Phil

    1. I’m not really well up on the Apex Continuations stuff, Philip – you could try one of the current evangelists, or Salesforce Devs on twitter?

Leave a Reply

Your email address will not be published. Required fields are marked *