Topic-icon Dynamic requests ?

Active Subscriptions:

None
14 years 4 months ago #18900 by activha
Dynamic requests ? was created by activha
Hello
This one is rather though !
We have pap replicated websites within joomla at the address activ-ha.com/monsite/{$refid} where {$refid} is replaced by the real name with a js file see for instance activ-ha.com/monsite/Robin/
We have set up FB request with the url activ-ha.com/monsite/{$refid} and it is working ok except that when called back by FB the tag is not replaced and we get the url activ-ha.com/monsite/{$refid} which is obviously a not recognized url
Is there a way to attach the request dynamically to the page instead of defining it from the admin ?
The page activ-ha.com/monsite/Robin has got all the script replacements for the tag {$refid} so could you tell me what we could do to include the request with this tag ?
What I mean is that if this is impossible from the backend, could you give me the code to set up in the front end with the {$refid} tag so that the request is properly dealt with by FB
Thanks
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18915 by mtk
Replied by mtk on topic Dynamic requests ?
Hello Jean Claude,
if I understand what you're trying to do here you would need to manually create a JFBCRequest for each page, since there is no way of creating a JFBCRequest dynamically, and (somehow) externally map each one of them to your specific {$redif}. Then you could take the JFBCRequest Tag and let your JS dynamically replace the code.
something like this:
{JFBCRequest request_id={{reqid_refid_map}} link_text=come visit {refid}'s page}

Let us know if this helped or if I didn't understand correctly.

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18922 by activha
Replied by activha on topic Dynamic requests ?
Well I would like to avoid any mapping of this sort as we will have hundreds of users.
Could it be possible to manually add the code that JFBC should output within a module and insert it in the page with the {$refid}tag ?

The frontend page is ok and the request is also ok, I would like JFBC on the canvas page to be able to get the request and send back the correct tag.
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18924 by mtk
Replied by mtk on topic Dynamic requests ?

activha wrote: Well I would like to avoid any mapping of this sort as we will have hundreds of users.
Could it be possible to manually add the code that JFBC should output within a module and insert it in the page with the {$refid}tag ?

The frontend page is ok and the request is also ok, I would like JFBC on the canvas page to be able to get the request and send back the correct tag.

just to be sure I'm not taking the conversation to other places:
would each request be to a specific page, or would they all link to the same place?

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18926 by activha
Replied by activha on topic Dynamic requests ?
Hello Mati

No you're right each request should go to the specific page with {$refid} tag.

Look at the pages mentioned above, the tags are correctly converted in front end and in the request sent to FB, but I cannot see a way to tell JFBC to redirect to the correct page.
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18927 by mtk
Replied by mtk on topic Dynamic requests ?

activha wrote: No you're right each request should go to the specific page with {$refid} tag.

Thanks for clarifying that.
unfortunately, as I said before, this means you would have to manually create one request for each user-page (=refid).

activha wrote: Look at the pages mentioned above, the tags are correctly converted in front end and in the request sent to FB, but I cannot see a way to tell JFBC to redirect to the correct page.

you won't have an option to tell that to JFBC since it uses a request_id, which would be different than your {refid}.

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18928 by activha
Replied by activha on topic Dynamic requests ?

mtk wrote: you won't have an option to tell that to JFBC since it uses a request_id, which would be different than your {refid}.


Yes I understand, but I would like to bypass this function in order to use a plain php or js code to dialog with FB. Could you help me on this ?
There is no way that we could set manual requests for each user pages as we'll have hundred of users and that this is all automatically set up by PAP !

I would need to write the code on the page interacting with FB
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18932 by mtk
Replied by mtk on topic Dynamic requests ?
At the moment, JFBC cannot handle dynamic requests since it'd need to store the dynamic destination URL to be able to track it once the request was actually accepted (which could be days/weeks after it was sent), but it's something we have plans for.

We're looking into possible ways to do what you're looking for. We'll try to get some code that can do that soon.
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18957 by activha
Replied by activha on topic Dynamic requests ?

mtk wrote: We're looking into possible ways to do what you're looking for. We'll try to get some code that can do that soon.

Thanks for that, we hope that you could get something quick and are ready to help with our website.

For now we have set up a temporary destination url to avoid 404 errors, tell me when you have something to test with

Best regards
jean Claude
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19101 by activha
Replied by activha on topic Dynamic requests ?
Hello
Did you come to something with the new code that we spoke about ?
The topic has been locked.