Port of facebook php-sdk to coldfusion.

Hi,
I just started porting the official facebook php-sdk to coldfusion. I have currently only done rudimentary testing.
However the code is working fine with open bluedragon running on a tomcat server.
Just thought i would put that out there, might save someone out there some work. I have attempted to keep the code as close to the php-version as possible to simplify porting any further changes that might be made to the php version.
The code lives here.
http://github.com/quicken/facebook-cfml-sdk
cheers
Marcel

Thanks for the prompt reply.
It still puzzles me that not one of (literally) one billion applications ever requires root privileges. I understand the potential security problems, though other sandboxes (e.g. in Java) allow an authentication mechanism to escape out the restrictions when needed.
I guess that also libpcap is not accessible, as it would be of little/no use if you are not root.

Similar Messages

  • Can we call a php function into coldfusion coding?????????

    can we call a php function into coldfusion??
    if anybody knows that let me know....

    Nope, as IIS can only pass one page to one handler, so it gets passed to ColdFusion *or* PHP. The only way it would work is to have a page with an iFrame containing a PHP page, but that's not calling a PHP function from ColdFusion.
    Dare I ask what it is you're trying to achieve exactly? If it's an extremely complicated function that can't possibly be rewritten, you'd probably want to wrap it up in a webservice and call it from CF.

  • Which facebook ios sdk or apple social framework better to use ?

    We have one mapping project now Iphone/Ipad. This time we want to integrate our application with facebook.
    Now for doing this we have two choices
    1. Using official facebook ios sdk
    2. Using Apple social framework
    Im new at social programming so Im comfused at choosing one or two.
    Can anyone can give me an advice
    Thank you very much

    You need to update iTunes to 11.1 on your PC

  • Facebook iOS SDK: Data collection and Permissions

    What data points does the Facebook iOS SDK auto-collect?
    Meaning developer doesn’t need to use a setter method at all and SDK is just able to get the value automatically.
    Does Facebook iOS SDK automatically collect IFA without requiring it to be set manually?
    Does Facebook iOS SDK automatically collect latitude and longitude without requiring it to be set manually?
    What iTunes permissions does Facebook require implementing their iOS SDKs?

    Wouldn't it be more appropriate to ask Facebook about their iOS integration?

  • HELP! --with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared

    I have oracle instant client installed on C:\oracle\instantclient_11_2 and the environment variable for path set to C:\oracle\instantclient_11_2 on my windows VPS server. When I install PHP version 5.3.6 with the OCI8 extension it installs correctly. I run a php script with phpinfo(); and I see...
    "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared"
    But no OCI8 extension info is listed. So that tells me it's not installed and I can't do any oci functions.
    I don't have a D:\php-sdk\oracle\instantclient10\sdk directory on that server and I have no idea on how to change the default compiled directory. If I run the php.exe I get an error saying that it can't locate the oci.dll...
    How do I get this instant client path fixed?
    I am at the end of my rope so who ever answers this post. THANK YOU!!!

    This is a dup of this :
    HELP! "--with-oci8=D:\php-sdk\oracle\instantclient11\sdk,shared"

  • PHP SDK - OAuth

    I've setup an application and have generated an OAuth token to work with the Reporting Samples in the PHP SDK example files but I'm having issues with getting authenticated. In the sample, (Keyword Performance Report), it details setting the UN and PW and
    then passing them into the ConstructWithAccountId function, which I can't do since I access the account through a MSFT account rather than Bing Ads UN/PW combo. I reviewed the code and have tried setting the UN and PW fields to null and then passing in
    my authentication token but I still get a 105 error, rather than a 109 which I could work with. I get the same error with the ConstructWithCredentials function. 
    Am I not able to use these functions with OAuth? Should I pass something other than null for the UN and PW into them along with my token? 
    Thanks!
    $authenticationToken = 'NNNNNNNNNN';
    $DeveloperToken = "NNNNNNNNNN";
    // Reporting WSDL.
    $wsdl = "https://api.bingads.microsoft.com/Api/Advertiser/Reporting/V9/ReportingService.svc?singleWsdl";
    try
    $proxy = ClientProxy::ConstructWithCredentials($wsdl, null, null, $DeveloperToken, $authenticationToken);

    Hello.
    We did update the
    Bing Ads PHP Classes download package today, to address a separate issue. Wanted to let you know so either way you can get the latest release. 
    Either of the following work for me:
    $proxy = ClientProxy::ConstructWithAccountId($wsdl, null, null, $DeveloperToken, $AccountId, $AuthenticationToken);
    $proxy = ClientProxy::ConstructWithCredentials($wsdl, null, null, $DeveloperToken, $AuthenticationToken);
    Did you confirm that the Microsoft Account (corresponding to your $authenticationToken) has access to one or more Bing Ads accounts? If you use a Microsoft Account that doesn't have access to Bing Ads accounts, then a 105 error would be expected. For more
    information, see
    Managing User Authentication with OAuth.
    I hope this helps.

  • How to copy uploaded blob to asset for AMS processing using PHP SDK

    I'm using Azure PHP SDK for Azure Media services and having problem with uploading large files (< 64 mb). So i tried using Blob service to upload as a chunk and commit it as a single file. It also works fine, and now media services won't directly take blob
    as a input. So i need to convert it into an Asset.
    I'm following the link https://msdn.microsoft.com/en-us/library/azure/jj933290.aspx which
    has example using .NET, is there a PHP sdk library support available for copying blob to asset. If yes please let me know the class and its methods or link.
    Please advice
    Mohanraj

    Hi Mohanraj,
    We recently had a fix for the problem you mentioned above:
    https://github.com/Azure/azure-sdk-for-php/commit/972e09c74308411602027280ededb3048b1e2fc4. We will try to release it asap but you can now try to upload by using this code pulled from dev branch.

  • Facebook JavaScript SDK(al.js) include error

    HI All,
    I am planning to integrate facebook with my InDesign plugin.
    In my plugin I have a button "Share On facebook" clicking it will share a post on user wall.
    To achieve this i read faceboook-developer tutorial and download JavaScript facebook SDK from http://connect.facebook.net/en_US/all.js
    and saved it locally and try to include this in my code as follows
    #include "all.js"
    FB.init({ appId: xxxxxxx, status: true, cookie: true, xfbml:true });
    But When I ran the above script in ExtendScriptToolkit then it gives compilation error for all.js
    I also tried to convert all.js to its binary equivalent by open all.js in extendscripttoolkit and do File > Export As binary but it gives same error.
    Please help me to fix all.js compilation issue.
    Regards,
    Alam

    Hi Alam
    Because  JavaScripts are meant for a specific engines there is no such thing as a JavaScript binary executable on your operating system.
    Years ago iI connected InDesign to a server using JavaScript sockets. This was a showcase  just to show what is possible. Be sure not to violate the license agreement.
    I dont know if that would work for you.
    If you where on a Mac there is the possibility to work with applescript. Because applescript runs also on OS X there you could possibly connect InDesign to browser output. I’v never tried that though.
    Kind Regards
    Dani (from Switzerland)

  • Azure PHP SDK createBlobService() not working - fails at $httpClient = $this- httpClient() in ServicesBuilder.php

    We are writing a PHP application to run in Azure but the Azure SDK does not seem to work when trying to use Azure Storage.  Here is the relevant code snippet:
    $connectionString = "DefaultEndpointsProtocol=http;AccountName=<accountname>;AccountKey=<accountkey>";echo $connectionString;$blobRestProxy = ServicesBuilder::getInstance()->createBlobService($connectionString);
    We are of course doing this at the top of the php file that has the above snippet in it:
    require_once 'WindowsAzure\WindowsAzure.php';use WindowsAzure\Common\ServicesBuilder;
    Everything after calling 'createBlobService' fails.  We dug into it a bit more and found out that the $httpClient = $this->httpClient(); call in the below snippet just kills everything (the call exists in WindowsAzure\Common\ServicesBuilder.php).  If
    we comment out the $httpClient line and everything below in createQueueService(), the rest of the code in the page will be run (we have some echos and stuff so we know it ran the rest of the page):
    public function createQueueService($connectionString)
    $settings = StorageServiceSettings::createFromConnectionString(
    $connectionString
    $httpClient = $this->httpClient();
    $serializer = $this->serializer();
    $uri = Utilities::tryAddUrlScheme(
    $settings->getQueueEndpointUri()
    PS.  We also found a StackOverflow question asking this exact thing but there's no answer to it:
    http://stackoverflow.com/questions/13930880/connect-to-azure-blob-through-azure-website-with-php
    We are at a loss and could really use a bit of help here.
    Thanks
    ArcDatum

    Hi ArcDatum,
    I understand that you are writing a PHP application for creating a blob service createBlobService() and it doesn't work.
    Firstly, Do you receive any error Messages ?
    Please check this if you are receving any error codes :
    Blob Service Error Codes
    Recommend you to follow the steps from this
    document
    also check 3rd party doc if this of any help
    Please feel free to write back to us incase of any queries .
    Regards,
    Shirisha Paderu.
    Disclaimer :  This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software
    or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet,
    and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

  • Translating PHP Script to Coldfusion

    Hello,
    I need to translate this code (which is in PHP) to coldfusion, is there anyone who can help me please it´s urgent, thanks a lot.
    <?
    $ref = $_GET['Reference'];
    $act = $_GET['Action'];
    $par = $_GET['Param'];
    switch ($act) {
    case "DETAIL":
    echo "Reference=".$ref. "&Action=".$act."&Reponse=".$montant;
    break;
    case "ERREUR":
    echo "Reference=".$ref. "Action=".$act. "Reponse=OK";
    break;
    case "ACCORD":
    echo "Reference=".$ref. "Action=".$act. "Reponse=OK";
    break;
    case "REFUS":
    echo "Reference=".$ref. "Action=".$act. "Reponse=OK";
    break;
    case "ANNULATION":
    echo "Reference=".$ref. "Action=".$act. "Reponse=OK";
    break;
    ?>  

    When you're approaching the task of "translating PHP to ColdFusion," and when you find yourself with just-a-moment where you are not "up to your earlobes in alligators" (i.e. when you can recall that "your original objective was to drain the moat ..."), then do try to step back and look at the forest not just the trees.  ColdFusion actually has a rather different philosophy toward designing applications, which can be summed up (I think) like this:
    Most web-tools (PHP, dot-Net, even Ruby and Perl) give you the ability to "write a program" that just happens to produce an HTML output.
    Content-management (CMS) systems are "really-nifty programs that have already been written for you."
    ColdFusion is an application-server system that uses an XML-based declarative syntax.  It is implemented on the back-end using a "just in time" compiler that cranks out the (Java and JavaScript) code for you.  Although many of the "tags" implement conventional procedural-programming constructs such as "switch" and "if" and "loop" and "call," you'll notice that many more do not.
    A good example of the difference between them, for me, is the <cftransaction> tag.  This tag declares to ColdFusion that the enclosed block is supposed to "be a database transaction."  This means, without you having to say anything further, that:
    A database transaction should be started.
    If all of the code within this block completes successfully, the database transaction should be committed.
    If an exception occurs within this block, the database transaction should be rolled-back (in addition to anything else that should happen as a consequence of an exception having occurred).
    The ColdFusion Engine parses that declarative tag and automagically generates the necessary Java code to implement it correctly, on-the-fly, then executes that code immediately.  You don't have to be consciously aware that this is happening, even though as an application designer you can.
    This strategy is especially useful when an application needs to be "scaled up" to run on multiple servers.  When ColdFusion is configured for that environment, the code that it on-the-fly generates is a little bit different.  But the page that you wrote, isn't.

  • Help with PHP script to Coldfusion

    I have a PHP script that I need to create in coldfusion. I'm
    fairly new to coldfusion and would appreciate any help. Here is the
    PHP script... The code is suppose to retrieve the HTTP POST data
    from the url. I would be open to doing this in Javascript as well.
    Thanks again...
    /* Script Start */
    //Get the file POST data
    $filePost = $_POST[$filePostVariable];
    //Break the file list into an array
    $filePost = explode($fileDelimiter, $filePost);

    <cfset arrayList = ListToArray(url.urlVar)>
    I accessed the URL vars directly via url scope, and the
    default delimiter is comma otherwise add a delimiter to the
    listToArray function. In the PHP example it looks like you had a
    var that held the url var name. I hope this helps.
    Trevor
    Visit Me

  • Running PHP script via ColdFusion

    I'm running CFMX 7 on a Solaris platform with PHP 5.0.5.
    I need to determine the width and height of an uploaded image
    to ensure that the file can be reasonably used on a web page. I
    have scoured the Internet and found a numer of solutions to this.
    Most need the installation of additional software on our server and
    the creation of a custom tag. These are doable, but would require
    additional effort I don't have time for at the moment. Also, the
    software to install is a full image manipulation package that is
    definitely overkill for my needs. Kind of like threading a needle
    with a hammer.
    On the other hand I know that PHP has a command called
    "getimagesize" that would be perfect for my use. This would be much
    more simple and elegant. And I have created a small program (see
    below) that can accept a location of an image file and display the
    width and height of the image as a result. The code is:
    <?php
    list($width, $height) = getimagesize($argv[1]);
    echo "$width, $height";
    ?>
    I've tested it via the command line and it works fine.
    However, I'm having difficulty in running it via the ColdFusion
    cfexecute tag. Here is that code:
    <cfsavecontent variable="imgsize">
    <cfexecute name="#phpfilelocation#"
    arguments="#imagelocation#"></cfexecute>
    </cfsavecontent>
    I get nothing back from this. I've also tried the cfhttp tag
    with similar results. It seems to me that the argument (the
    location of the image) is not being accepted by the PHP code for
    some reason.
    I've looked for a solution to this within this forum and via
    Google, etc. to no avail. There is apparently something about PHP
    or ColdFusion that is escaping me. Any help clarifying why this is
    not working and (hopefully) a workaround would be very much
    appreciated. Thank you.

    Maybe this will help:
    http://groups.google.com/group/alt.comp.lang.coldfusion/msg/af84ac7dfec0d09e?dq=&hl=en&lr= &ie=UTF-8&oe=UTF-8&rnum=8

  • PHP on a COLDFUSION SERVER

    Hi,
    I have the following question: Is it possible to get PHP
    running on a Coldfusion server? I have a forum in php which I want
    to be displayed on the webpage running under Coldfusion.
    Is this possible? What would be the best solution?
    Regards,
    Kabbi Thkek

    Well no, not inside a page. You can not embed PHP code in a
    CFM file
    and expect the ColdFusion engine to know what to do with it,
    anymore
    then you can embed CFML code in a PHP file and expect the PHP
    engine to
    understand it.
    You can cross process with frames, as mentioned. Since then
    each
    request will be sent to the appropiate engine by the web
    server.
    You can also use web services to pass information from one
    app server to
    the other.
    With ColdFusion you could use the CFHTTP tag to call a PHP
    page and
    process what it returns. I'm sure PHP has similar
    functionality.
    Those are the three ideas I could come up with.
    YC wrote:
    > Of course, you can run ColdFusion and PHP at the same
    time in one machine.
    > I am running both of them on Windows and with IIS.
    >
    > But I think kabbi~'s question is, in fact, this is my
    question, too, can we
    > run a PHP page embedded inside a ColdFusion page? The
    only way I can think
    > of is using frames, but frames can be tricky in many
    cases, so I want to
    > avoid it if possible. Is there a better way to do this?
    >
    > YC
    >
    >
    > "frank_tudor" <[email protected]> wrote
    in message
    > news:ea86v1$rfk$[email protected]..
    >> I have had success running PHP and Coldfusion
    together with Apache on
    >> Windows
    >> and Linux.
    >>
    >> Start with installing Apache then install Coldfusion
    to use apache as the
    >> webserver, then install PHP
    >>
    >> Or PHP then Coldfusion...
    >>
    >> It'll work. :)
    >>
    >> Frank
    >>
    >
    >

  • LR will not publish to Facebook in SDK

    I just created a new catalog from an exported-as catalog.
    The new catalog has Facebook publish service authorized, but the right-click button is disabled, and the "PUBLISH" button doesn't show up as usual.

    Hard to say unless you provide some details - iPhoto version - OS version - error messages - etc
    you can try this user tip and see if it helps - it has helped some
    LN

  • What is the best program language for mass email (PHP,  ASP, Coldfusion)?

    I want to be able to send mass email (from a SQL db) with
    stability and reliability.
    I've used Coldfusion for some time (CFmail tag) and have not
    been impressed.
    It seems, at times, it has a mind of it's own, and is a
    little unreliable, especially
    when sending hundreds of emails at one shot. I'm not dogg'n
    Codfusion,
    that's what I program in, I just am looking for a method that
    I can build on.
    My question is this: What is the best and most reliable
    coding when sending mass email?
    Is it PHP, ASP, XML, Coldfusion....what?
    You would think there has to be an optimum option out
    there...right?
    Thanks for the knowledge!

    Beezy wrote:
    > say ...500-5,000, maybe larger. Any ideas?
    >
    I've used CF to send out as many as 50,000+ emails in a
    single blast and
    haven't ever had any problems with it. Particularly with CF
    Enterprise,
    CF is an extremely high-performance mail generation engine.
    Remeber
    that CF itself doesn't send the mail so you're dependent upon
    the speed
    of your mail server as a large part of the equation as well.
    Matt
    Matt Woodward
    [email protected]
    Adobe Community Expert - ColdFusion

Maybe you are looking for

  • Charging a MacBook Pro (60 MagSafe) with an Air (45w MagSafe) plug.

    Can I safely charge a MacBook Pro (60 MagSafe) with a MacBook Air wall charger (45w MagSafe)?  I ask because I'm replacing a 2009 MacBook Pro with a new Air and the Pro cord is dead. I'd like to charge the pro with the air charger so I can transfer f

  • Use of JAAS in WLS6 for sngle logon

    We're in the design stage of a product, which will be based on Weblogic Server 6 and are hoping to use JAAS. I'm quite new to WL in general and JAAS security and having read the documentation, I'm still not clear on a few points about how JAAS is use

  • Rename PDF retains original file name?

    I'm doing a forensic analysis of a PDF file sent from a multi-function printer. The PDF was renamed in Windows by the user but I need to determine the original PDF name as it was sent from the printer. I have used a PDF parsing tool to try and determ

  • Curious behaviour with MS Access

    The Problem is i have an SQL Statement that if executed via jdbc does not provide any results. If i copy the statement from my logfile to Access and execute it there, it works. Does anyone kow how this can be fixed? I 'm using jdk 1.3.1_03. Best rega

  • Does the flaser ever fully download and install

    I clicked the download for adobe flasher because mozilla firefox is needed to see the images on facebook but the download box after its finished never goes to another step like completeting installation so I am asking why not or is it completely plug