Facebook Fan Page Support Product Page

Solved

typeerror

Reported 16 Mar 2012 18:09:41
1
has this problem
16 Mar 2012 18:09:41 Dan Perrine posted:
When I try to create something seen by fans by selecting the data and clicking on the Show if User is a Fan, I get the message TypeError: dwscripts.convertStringToXHTML is not a function

What do I need to do differently? The same message comes up if I try to create something seen by non fans.

Replies

Replied 19 Mar 2012 07:51:39
19 Mar 2012 07:51:39 Teodor Kuduschiev replied:
Hello,

Can you please explain a little more detailed what exactly are you trying to do/add and when exactly the error appears?
Replied 19 Mar 2012 13:20:48
19 Mar 2012 13:20:48 Dan Perrine replied:
OK.

Following the instructions in "The Basics" I went to developers.facebook.com/apps and set up my test app.

I then set up a blank page in DW and saved it as sstest.php.

I went back to the facebook developers page and entered all the appropriate URLs.

Everything is fine so far.

Then, again following the directions, I clicked on the Facebook icon in DW and entered my ID and Secret and selected LocalTest and 520 and clicked OK.

Everything is still fine.

Then, in DW, I enter a single sentance on the test page. I select it and click on the Facebook Fan Page icon and select Show if user is NOT a fan.

It is at this point that I get the error message.

"TypeError: dwscripts.convertStringToXHTML is not a function"

Replied 19 Mar 2012 13:32:57
19 Mar 2012 13:32:57 Dan Perrine replied:
Here is the entire page code if you need it.

ALSO, the manual shows what the page will look like in Test Runner but does not tell how to find the Test Runner. I have looked everywhere I can think of. Where is it?

<?php require_once('ScriptLibrary/dmxFacebook.php'); ?>
<?php
// Facebook Fan Page 1.1.0
$FB_Obj = new dmxFacebook();
$FB_Obj->apiKey = "xxxxx";
$FB_Obj->secretKey = "xxxxx";
$FB_Obj->runMode = "test";
$FB_Obj->stylesPath = "Styles";
$FB_Obj->pageWidth = "520";
$FB_Obj->Construct();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="Styles/dmxFacebook/dmxFacebook.css" />
</head>

<body>
<p>Here is some stuff that you can see if you are NOT a fan.</p>
<p>But if you click the Like button you can more stuff</p>
</body>
</html>

Replied 19 Mar 2012 13:38:15
19 Mar 2012 13:38:15 Teodor Kuduschiev replied:
Please uninstall the extension and clear your Dreamweaver cache: www.dmxzone.com/go?16740 , then restart Dreamweaver and install the extension again.
Replied 19 Mar 2012 14:19:52
19 Mar 2012 14:19:52 Dan Perrine replied:
That worked fine. Thank you.

Now, how do I access Test Runner?
Replied 19 Mar 2012 14:27:14
19 Mar 2012 14:27:14 Teodor Kuduschiev replied:
Well.. You just select it and preview your page in the browser.
Replied 19 Mar 2012 14:36:12
19 Mar 2012 14:36:12 Dan Perrine replied:
I hate to be dense but just select it WHERE? I don't see any tab, button, dropdown, menu or anything that says Test Runner.
Replied 19 Mar 2012 14:38:27
19 Mar 2012 14:38:27 Teodor Kuduschiev replied:
1. Select - Local test

2. Upload the page to your testing server and preview it.
This is all described in the video tutorial.
Replied 19 Mar 2012 14:42:21
19 Mar 2012 14:42:21 Dan Perrine replied:
Thank you. I read the manual but did not view the video. I assumed that both contained the same info.

Thanks again. I appreciate it.
Replied 21 Jun 2012 00:05:20
21 Jun 2012 00:05:20 Gaston Castagnet replied:
Hello, I can not see in my fanpage te content of index.php

This is my index.php
<?php require_once('ScriptLibrary/dmxFacebook.php'); ?>
<?php
// Facebook Fan Page 1.2.0
$FB_Obj = new dmxFacebook();
$FB_Obj->apiKey = "291458227599970";
$FB_Obj->secretKey = "70f12cce1c5d6d56c2c3f6c6c03064a9";
$FB_Obj->runMode = "test";
$FB_Obj->stylesPath = "Styles";
$FB_Obj->pageWidth = "810";
$FB_Obj->Construct();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $FB_Obj->includeHead() ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="Styles/dmxFacebook/dmxFacebook.css" />
</head>

<body>

  <?php	if ($FB_Obj->isFan) { // If Is Facebook Page Fan ?>
  <p>Alojamientos</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <?php } // Is Facebook Page Fan ?>

<?php if (!$FB_Obj->isFan) { // If Is NOT a Facebook Page Fan ?>
 
    <p>Hacete FAN y accede a todos nuestros alojamientos</p>
 
  <?php } // Is NOT a Facebook Page Fan ?>

<?php $FB_Obj->includeFoot() ?>
</body>
</html>




I set page tab url: www.lacumbrecita.gob.ar/FBK/index.php
is working well

But not in my fanpage test, check:
https://www.facebook.com/pages/Portal-de-Guemes/149444708467481?sk=app_291458227599970

What can i do?

Reply to this topic