---
title: "media (Odoo)"
description: "itgen_odoo_media"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.social.media
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.social.media
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# media: Odoo itgen_odoo_media

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `social`
- Label: itgen_odoo_media

Social Media

Can only retrieve data.

## Summary

The Instagram social media implementation is a bit special because it goes through
    the Facebook API to fetch information (as Facebook owns Instagram).

    That also means we can only add Instagram accounts through Facebook.

## Table Columns

The columns of the table `media` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `account_ids` | `varchar2` |  | [ ] |  |  |
| `accounts_count` | `int32` | # Accounts | [ ] |  |  |
| `can_link_accounts` | `boolean` | Can link accounts ? | [x] |  | Controls if we can link accounts or not. |
| `create_date` | `datetime` | Created on | [ ] |  |  |
| `create_uid` | `varchar2` |  | [ ] |  |  |
| `create_uid_label` | `varchar2` |  | [ ] |  |  |
| `csrf_token` | `varchar2` | CSRF Token | [ ] |  | This token can be used to verify that an incoming request from a social provider has not been forged. |
| `display_name` | `varchar2` | Display Name | [ ] |  |  |
| `has_message` | `boolean` | Has Message | [ ] |  |  |
| `has_streams` | `boolean` | Streams Enabled | [x] |  | Controls if social streams are handled on this social media. |
| `id` | `int32` | ID | [ ] |  |  |
| `image` | `varbinary` | Image | [ ] |  |  |
| `max_post_length` | `int32` | Max Post Length | [ ] |  | Set a maximum number of characters can be posted in post. 0 for no limit. |
| `media_description` | `varchar2` | Description | [ ] |  |  |
| `media_type` | `varchar2` | Media Type | [ ] |  | Used to make comparisons when we need to restrict some features to a specific media ('facebook', 'twitter', ...). |
| `message_attachment_count` | `int32` | Attachment Count | [ ] |  |  |
| `message_follower_ids` | `varchar2` |  | [ ] |  |  |
| `message_has_error` | `boolean` | Message Delivery error | [ ] |  | If checked, some messages have a delivery error. |
| `message_has_error_counter` | `int32` | Number of errors | [ ] |  | Number of messages with delivery error |
| `message_has_sms_error` | `boolean` | SMS Delivery error | [ ] |  | If checked, some messages have a delivery error. |
| `message_ids` | `varchar2` |  | [ ] |  |  |
| `message_is_follower` | `boolean` | Is Follower | [ ] |  |  |
| `message_main_attachment_id` | `varchar2` |  | [ ] |  |  |
| `message_main_attachment_id_label` | `varchar2` |  | [ ] |  |  |
| `message_needaction` | `boolean` | Action Needed | [ ] |  | If checked, new messages require your attention. |
| `message_needaction_counter` | `int32` | Number of Actions | [ ] |  | Number of messages which requires an action |
| `message_partner_ids` | `varchar2` |  | [ ] |  |  |
| `name` | `varchar2` | Name | [x] |  |  |
| `stream_type_ids` | `varchar2` |  | [ ] |  |  |
| `website_message_ids` | `varchar2` |  | [ ] |  | Website communication history |
| `write_date` | `datetime` | Last Updated on | [ ] |  |  |
| `write_uid` | `varchar2` |  | [ ] |  |  |
| `write_uid_label` | `varchar2` |  | [ ] |  |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

