ご存知でしたボットのリブレー無料主催 フォーラム のためにお客様ご自身のウェブサイトまたはモバイルアプリのか?
Bugs and Features

Embedd as iframe does not work

による Gandolfos 掲載 Mar 30 2014, 23:22

it's still not working to embedd a iframe in a wordpress page. i recieve the following error: "You must first select a bot Not connected" the sourcecode looks like this: thx for support


by admin posted Mar 31 2014, 6:58
Make sure you put the correct id for your bot in the chat parameter, i.e. your bot's id is 12551.

Here is an example of an embedded bot,

http://botlibre.blogspot.ca/p/talk-with-brain-bot.html

The code to embed your bot would be:

<iframe src="http://www.botlibre.com/embedded?&chat=12551&background=fff" width="600" height="400" frameborder="0" scrolling="auto"></iframe>


Updated: Mar 31 2014, 7:02
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 693, today: 0, week: 0, month: 6


by admin posted Mar 31 2014, 7:14
Ok, I see the issue.

The issue is that you have configured your bot's access mode to 'Users', so anonymous users will not be able to connect to your bot from the iframe (only connected users). You can either set your access mode to 'Everyone', or create a guest user to connect as from your iframe.

If you go to the Embed pane it will give you the option to enter a guest user/password (but only if your bot is private right now, I will make these options show up for access restricted as well).

You can change your bot to private to generate the code, then change it back.

The code would be,

<iframe src="
http://www.botlibre.com/embedded?&chat=12551&user=guest&password=0F20EC61D288676A06B37E401E02F1F4&background=fff" width="600" height="400" frameborder="0" scrolling="auto"></iframe>

Updated: Mar 31 2014, 7:14
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 693, today: 0, week: 0, month: 4

by Gandolfos posted Mar 31 2014, 14:40
ok, thanks

it is secure to post my id and the password in this public forum?

Gandolfos

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 584, today: 0, week: 4, month: 8

by admin posted Mar 31 2014, 18:16
No, do not post your user/password in a public forum.

The guest user/password I included was an example, a generic BOT libre guest user.

The password is encrypted, but still avoid using a real password, as it will be in the html, and it is possible someone might be able to decrypt it.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 591, today: 1, week: 1, month: 5

Id: 17564
タグ: iframe, wordpress, embedd
掲載: Mar 30 2014, 23:22
回答: 2
眺望: 815, 今日の: 1, 週間: 1, 月: 6

フラグとしての攻撃、または違反のサイトのルール