Results 1 to 4 of 4

Thread: Zend Framework + Facebook integration issue

  1. #1
    GarrettVD is offline Junior Member
    Join Date
    Sep 2009
    Posts
    4

    Default Zend Framework + Facebook integration issue

    I'm working on a ZF-based Facebook application. All is going relatively smoothly, except I've seem to hit brick wall when it comes to this issue: I've set up a showFeedDialog box in my IFrame application (which handles posting stories to a user's wall). It seems to be looking for xd_receiver.htm as an action within the Analyze controller, however ZF interprets this as a call to that controller's action. THe following is the text that the popup box spits back to me...:

    An error occurred
    Page not found
    Exception information:

    Message: Action "xdreceiverHtm" does not exist and was not trapped in __call()
    Stack trace:

    #0 *absolute path*/library/Zend/Controller/Action.php(515): Zend_Controller_Action->__call('xdreceiverHtmAc...', Array)
    #1 *absolute path*/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('xdreceiverHtmAc...')
    #2*absolute path*/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #3 *absolute path*/httpdocs/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch()
    #4 *absolute path*/httpdocs/library/Zend/Application.php(346): Zend_Application_Bootstrap_Bootstrap->run()
    #5 *absolute path*/httpdocs/public/index.php(26): Zend_Application->run()
    #6 {main}

    Request Parameters:

    array (
    'controller' => 'analyze',
    'action' => 'xd_receiver.htm',
    'module' => 'default',
    )

    It works fine with IE -- No problems. Firefox on the other hand, not so much... So my question is this: How do I fix this? xd_receiver.htm is located at /public/xd_receiver.htm, but I suppose I copy it to another location as well.



    For those of you familiar with Facebook Connect / Facebook dev, my code in the view/scripts/analyze.phtml file is as follows:

    <script type="text/javascript">
    var template_data = {'score': '35', 'sex': 'he'};
    FB_RequireFeatures(["XFBML"], function(){
    FB.init("***API KEY***", "xd_receiver.htm");
    FB.CanvasClient.startTimerToSizeToContent();
    FB.Connect.showFeedDialog(#######, template_data);
    });
    </script>




    Thanks
    Last edited by GarrettVD; 09-17-2009 at 04:43 AM.

  2. #2
    jweber is offline Senior Member
    Join Date
    Jun 2008
    Location
    Florida
    Posts
    167

    Default

    Change your rewrite rule to not route .htm files to your index.php.

  3. #3
    GarrettVD is offline Junior Member
    Join Date
    Sep 2009
    Posts
    4

    Default

    Thanks a lot. I am familiar with rewrite rules, but would it be possible to see an example of this type of routing?

    Thanks again,

  4. #4
    jweber is offline Senior Member
    Join Date
    Jun 2008
    Location
    Florida
    Posts
    167

    Default

    Your rewrite rule likely has a list of file extensions, separated by a pipe symbol, to not send to index.php. Probably something like
    Code:
    ...
    jpg|gif|css|
    ...
    Just add htm to this list of file extensions.

Similar Threads

  1. Microsoft Dynamics NAV (ERP) integration with Zend Framework?
    By mkocurek in forum Integration with Third party tools
    Replies: 1
    Last Post: 12-08-2010, 02:34 PM
  2. phpRack v0.1, Integration Testing Framework
    By phpRack in forum Installation & Configuration
    Replies: 0
    Last Post: 07-22-2010, 05:26 PM
  3. Issue using Stored Procedure in Zend framework
    By xavier in forum Forum Feedback
    Replies: 0
    Last Post: 05-26-2010, 06:18 AM
  4. Zend Framework ACL ... issue getting parents
    By Kudose in forum Authentication & Authorization
    Replies: 1
    Last Post: 07-25-2008, 02:47 PM
  5. Zend Framework: URL issue
    By dele454 in forum Installation & Configuration
    Replies: 4
    Last Post: 06-22-2008, 11:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •