bobaksh / easy-appointments

Automatically exported from code.google.com/p/easy-appointments
0 stars 0 forks source link

Won't integrate into Facebook #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When you add it to a facebook app on a page it gives this back:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: post_data

Filename: controllers/appointments.php

Line Number: 99

Your appointment has been successfully registered!

An email with the appointment details has been sent to you.

Unexpected Errors

Customer's email is not provided.
#0 
/home/john/public_html/easyappointments/application/controllers/appointments.php
(103): Customers_Model->exists(NULL)
#1 [internal function]: Appointments->index()
#2 /home/john/public_html/easyappointments/system/core/CodeIgniter.php(359): 
call_user_func_array(Array, Array)
#3 /home/john/public_html/easyappointments/index.php(203): 
require_once('/home/john/publ...')
#4 {main}

Original issue reported on code.google.com by paulmoon...@gmail.com on 17 Oct 2014 at 1:38

GoogleCodeExporter commented 9 years ago
Oh, I see... When a customer confirms the data of a new appointment E!A will 
postback to itself and register the new appointment. This might not be feasible 
within the facebook frame. 

The only way to get around this is to create an ajax post method instead of the 
postback. If you look at the "/assets/js/frontend_book.js" you will be able to 
see the way that E!A handles ajax posts to server.

Original comment by alextselegidis@gmail.com on 19 Oct 2014 at 5:15